Re: [Rd] wchar and wstring. (followup question)

2005-08-29 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, James Bullard wrote: > Thanks for all of the help with my previous posts. This question might > expose much of my ignorance when it comes to R's memory managment and > the responsibilities of the programmer, but I thought I had better ask > rather than continue in my ignorance

Re: [Rd] "finite" vs "R_FINITE" in colors.c (PR#8108)

2005-08-29 Thread ripley
Thanks, but it is already changed in the R-devel sources. On Mon, 29 Aug 2005 [EMAIL PROTECTED] wrote: > Full_Name: D Kreil > Version: 2.1.1 > OS: HP-UX B.11.23 U ia64 0029870451 unlimited-user license > Submission from: (NULL) (62.178.15.60) > > > During compiliation, I get: > > ld: Unsatisfied

Re: [Rd] wchar and wstring. (followup question)

2005-08-29 Thread James Bullard
Thanks for all of the help with my previous posts. This question might expose much of my ignorance when it comes to R's memory managment and the responsibilities of the programmer, but I thought I had better ask rather than continue in my ignorance. I use the following code to create a multi-byte

Re: [Rd] efficiency of sample() with prob.

2005-08-29 Thread Bo Peng
> It seems the distribution used for your tests is maximally favourable to > your proposal (not uncommon in papers, but not very honest). I did not have time to do a thorough test. I was simply reporting what I had done so any implied dishonesty is unfair to me. > Changing how this is done wil

[Rd] "finite" vs "R_FINITE" in colors.c (PR#8108)

2005-08-29 Thread rbug05
Full_Name: D Kreil Version: 2.1.1 OS: HP-UX B.11.23 U ia64 0029870451 unlimited-user license Submission from: (NULL) (62.178.15.60) During compiliation, I get: ld: Unsatisfied symbol "finite" in file colors.o Fix: replace "finite" with R_FINITE in colors.c line 269. I have, this time, searched

Re: [Rd] test for readline installation fails if installation location (PR#8107)

2005-08-29 Thread rpeng
This is the kind of thing that goes in the 'config.site' file (which I believe is in fact documented). The '--prefix' switch indicates where things should be installed. -roger [EMAIL PROTECTED] wrote: > Full_Name: D Kreil > Version: 2.1.1 > OS: HP-UX B.11.23 U ia64 0029870451 unlimited-user li

Re: [Rd] test for readline installation fails if installation location non-standard (PR#8104)

2005-08-29 Thread David Kreil
Dear Peter, Fair enough. For many people who install R without root rights, however, this is a first stumbling block so perhaps it might be worthwhile adding it to an "Installation how-to" document. I found another hicup: ld: Unsatisfied symbol "finite" in file colors.o Fix: replace "finite"

[Rd] Core dump during lazy loading of "survival" at installation time (PR#8106)

2005-08-29 Thread rbug05
Full_Name: D Kreil Version: 2.1.1 OS: HP-UX B.11.23 U ia64 0029870451 unlimited-user license Submission from: (NULL) (62.178.15.60) I sadly get a core-dump during installation, when it tries to lazyload package survival. Any idea what to do about this? Best regards, D. ... include -fPIC -g

Re: [Rd] test for readline installation fails if installation (PR#8105)

2005-08-29 Thread boku
Dear Peter, Fair enough. For many people who install R without root rights, however, this is a first stumbling block so perhaps it might be worthwhile adding it to an "Installation how-to" document. I found another hicup: ld: Unsatisfied symbol "finite" in file colors.o Fix: replace "finite"

Re: [Rd] test for readline installation fails if installation location non-standard (PR#8104)

2005-08-29 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Full_Name: D Kreil > Version: 2.1.1 > OS: HP-UX B.11.23 U ia64 0029870451 unlimited-user license > Submission from: (NULL) (62.178.15.60) > > > When the dependency readline is installed in a non-standard location the > installation procedure fails. > If using a non-st

[Rd] test for readline installation fails if installation location non-standard (PR#8104)

2005-08-29 Thread rbug05
Full_Name: D Kreil Version: 2.1.1 OS: HP-UX B.11.23 U ia64 0029870451 unlimited-user license Submission from: (NULL) (62.178.15.60) When the dependency readline is installed in a non-standard location the installation procedure fails. If using a non-standard installation location like --prefix

Re: [Rd] Question about SET_LENGTH

2005-08-29 Thread Prof Brian Ripley
SET_LENGTH is in Rdefines.h (you did not say). It is a wrapper for x = lengthgets(x, n) and that will do what you want. HOWEVER, you have changed x and the object it points to, so you do need to worry about re-protection. So, I think that macro is rather dangerous (and it is not the on

Re: [Rd] floating point control on windows

2005-08-29 Thread dhinds
Chris Paulse <[EMAIL PROTECTED]> wrote: > Hi, > I'm sure that this question has come up many times before. When I load an R > extension dll I've built with the Microsoft compiler, I get the warning: > Warning message: > DLL attempted to change FPU control word from 8001f to 9001f I think maybe

Re: [Rd] efficiency of sample() with prob.

2005-08-29 Thread Prof Brian Ripley
Peter Windridge and I investigated this further. It seems the distribution used for your tests is maximally favourable to your proposal (not uncommon in papers, but not very honest). There are examples in which the existing method is substantially faster than Walker's (when each set of prob i

[Rd] Question about SET_LENGTH

2005-08-29 Thread James Bullard
Hello all, thanks for all the help on the other issues. This one should be relatively straightforward. I have a vector of integers which I allocate to be the maximal size possible (meaning I'll never see more than cel.GetNumOutliers, but most likely I'll see less) therefore, I want to resize the ve

[Rd] Problems setting and adding POSIX dates (PR#8103)

2005-08-29 Thread Robert . McGehee
> tm <- ISOdate(2005, 08, 29, hour =3D 12, tz =3D "EDT") > tm [1] "2005-08-29 11:00:00 EDT" ## Firstly, notice that the hour is 11, but was set to 12. > tm + 0 [1] "2005-08-29 11:00:00 EDT" > tm + 3600 ## Add an hour [1] "2005-08-29 12:00:00 EDT" > tm + c(0, 1) * 3600 ## Repeat [1] "2005-08-29

Re: [Rd] floating point control on windows

2005-08-29 Thread Chris Paulse
Thanks for the guidance. Using the following code fixed my problem: #ifdef _WIN32 BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { if (ul_reason_for_call == DLL_

Re: [Rd] floating point control on windows

2005-08-29 Thread Prof Brian Ripley
We recommend calling Rwin_fpset() which is exported by R.dll and is known to do the trick. As it contains _controlfp(_PC_64, _MCW_PC); it may be that the args you used are incorrect (and I am not on Windows to check the docs, but note that is the form used in the URL you cite). On Mon, 29

Re: [Rd] Fwd: segfault

2005-08-29 Thread Deepayan Sarkar
On Monday 29 August 2005 03:35, Prof Brian Ripley wrote: > It does not crash for me on either Windows or Linux, but it does take a > long time and the plot is a mess, so there does seem to be a > lattice-related problem (maybe a usage one). It is improper (or at least unanticipated) usage. The exa

[Rd] Rserve seem to be working but it doesn't

2005-08-29 Thread Joel Arrais
I'm trying to use the Rserve server in my Windows system. When i try to run the RServe i get the following message: C:\ ..\rserve Rserve: Ok, ready to answer queries. However when i try to test the connection using the telnet command (telnet localhost 6311 ) it doesn't seem to be worki

[Rd] floating point control on windows

2005-08-29 Thread Chris Paulse
Hi, I'm sure that this question has come up many times before. When I load an R extension dll I've built with the Microsoft compiler, I get the warning: Warning message: DLL attempted to change FPU control word from 8001f to 9001f So, what I did to try to fix the problem (to my knowledge

Re: [Rd] BLAS and ATLAS

2005-08-29 Thread Göran Broström
On Mon, Aug 29, 2005 at 02:43:28PM +0100, Prof Brian Ripley wrote: > On Mon, 29 Aug 2005, Göran Broström wrote: > > >On Mon, Aug 29, 2005 at 11:48:23AM +0100, Prof Brian Ripley wrote: > >>On Mon, 29 Aug 2005, Göran Broström wrote: > > > >>>LAPACK/BLAS routines call xerbla "if an input parameter ha

Re: [Rd] Compile warning in unique.c

2005-08-29 Thread Thomas Lumley
On Mon, 29 Aug 2005, Harris, Michael (NIH/NCI) [E] wrote: > > I am getting a compile warning when building R from source. I am building > on a AMD64 Opteron system with gcc (GCC) 3.3.3 (SuSE Linux) > > The warning is: > >unique.c: In function `cshash': > > unique.c:1146: warning: cas

Re: [Rd] Compile warning in unique.c

2005-08-29 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, Harris, Michael (NIH/NCI) [E] wrote: > I am getting a compile warning when building R from source. I am building > on a AMD64 Opteron system with gcc (GCC) 3.3.3 (SuSE Linux) > > The warning is: > >unique.c: In function `cshash': > > unique.c:1146: warning: cast

[Rd] Compile warning in unique.c

2005-08-29 Thread Harris, Michael (NIH/NCI) [E]
Hello, I am getting a compile warning when building R from source. I am building on a AMD64 Opteron system with gcc (GCC) 3.3.3 (SuSE Linux) The warning is: unique.c: In function `cshash': unique.c:1146: warning: cast from pointer to integer of different size

Re: [Rd] Additional Books on R for Web Site Listing

2005-08-29 Thread Friedrich . Leisch
> On Sun, 28 Aug 2005 17:30:24 -0500, > Marc Schwartz (MS) wrote: > Hi all, > I noted that the books below are not included on the R web site > Documentation section under "Books". I thought that I would provide > these and have created some bib entries consistent with the style us

Re: [Rd] FW: RServe initialization problem

2005-08-29 Thread Simon Urbanek
On Aug 29, 2005, at 6:04 AM, joelarrais wrote: > I want to use the R functionalities in my Java program. I found the > Rserve > that appear to suite my requirements but I'm facing some configuration > problems. > I' following the web page tutorial > (http://stats.math.uni-augsburg.de/Rserve/doc.

Re: [Rd] BLAS and ATLAS

2005-08-29 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, Göran Broström wrote: On Mon, Aug 29, 2005 at 11:48:23AM +0100, Prof Brian Ripley wrote: On Mon, 29 Aug 2005, Göran Broström wrote: LAPACK/BLAS routines call xerbla "if an input parameter has an invalid value" (exact quote from XERBLA at Netlib). Other types of errors a

Re: [Rd] RServe initialization problem

2005-08-29 Thread Simon Urbanek
Joel, On Aug 29, 2005, at 5:57 AM, joelarrais wrote: > I want to use the R functionalities in my Java program. I found the > Rserve > that appear to suite my requirements but I'm facing some configuration > problems. > > I' following the web page tutorial > (http://stats.math.uni-augsburg.de/Rs

[Rd] BLAS and ATLAS

2005-08-29 Thread Göran Broström
On Mon, Aug 29, 2005 at 11:48:23AM +0100, Prof Brian Ripley wrote: > On Mon, 29 Aug 2005, Göran Broström wrote: > >LAPACK/BLAS routines call xerbla "if an input parameter has an > >invalid value" (exact quote from XERBLA at Netlib). Other types of errors > >are not printed (by xerbla), but it is

Re: [Rd] robustness of install.packages/update.packages (was Re: bug in L-BFGS-B? (PR#8099))

2005-08-29 Thread Berwin A Turlach
G'day Brian, > "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes: >>> However, update.packages() wanted to update quite a few >>> packages besides MASS (the other packages in the VR bundle, >>> nlme, lattice &c). Once it failed on MASS, it terminated with >>> an error and

Re: [Rd] FW: RServe initialization problem

2005-08-29 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, joelarrais wrote: > > I want to use the R functionalities in my Java program. I found the Rserve > that appear to suite my requirements but I'm facing some configuration > problems. > I' following the web page tutorial > (http://stats.math.uni-augsburg.de/Rserve/doc.shtml) but

Re: [Rd] xerbla called from BLAS routine (PR#8100)

2005-08-29 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, Göran Broström wrote: On Mon, Aug 29, 2005 at 10:27:24AM +0100, Prof Brian Ripley wrote: On Mon, 29 Aug 2005, Göran Broström wrote: [...] BTW, the original BLAS xerbla (from the netlib page you referred to) gives the message: WRITE( *, FMT = )SRNAME, INFO F

Re: [Rd] robustness of install.packages/update.packages (was Re: bug in L-BFGS-B? (PR#8099))

2005-08-29 Thread Berwin A Turlach
G'day Brian, > "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes: BDR> We've never encountered this lying mirror problem. Indeed, that mirror is a worry, I guess that is the reason why it is not on the official mirror list. We had the problem with install.packages/update.packages und

Re: [Rd] xerbla called from BLAS routine (PR#8100)

2005-08-29 Thread Göran Broström
On Mon, Aug 29, 2005 at 10:27:24AM +0100, Prof Brian Ripley wrote: > On Mon, 29 Aug 2005, Göran Broström wrote: [...] > > > >BTW, the original BLAS xerbla (from the netlib page you referred to) > >gives the message: > > > >WRITE( *, FMT = )SRNAME, INFO > > FORMAT( ' ** On entry to ', A

[Rd] FW: RServe initialization problem

2005-08-29 Thread joelarrais
I want to use the R functionalities in my Java program. I found the Rserve that appear to suite my requirements but I'm facing some configuration problems. I' following the web page tutorial (http://stats.math.uni-augsburg.de/Rserve/doc.shtml) but I face the above problem: C:\Program Files\R\rw20

[Rd] RServe initialization problem

2005-08-29 Thread joelarrais
I want to use the R functionalities in my Java program. I found the Rserve that appear to suite my requirements but I'm facing some configuration problems. I' following the web page tutorial (http://stats.math.uni-augsburg.de/Rserve/doc.shtml) but I face the above problem: C:\Program Files\R\r

Re: [Rd] robustness of install.packages/update.packages (was Re: bug in L-BFGS-B? (PR#8099))

2005-08-29 Thread Prof Brian Ripley
On Sun, 28 Aug 2005, Prof Brian Ripley wrote: >> After redirecting R 2.1.1 on my laptop to use >>http://cran.au.r-project.org/ >> for the CRAN repository, the install.packages() command ran without >> problems. I issued the command `library(MASS)' and tried out the >> example from fitdist

Re: [Rd] xerbla called from BLAS routine (PR#8100)

2005-08-29 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, Göran Broström wrote: On Mon, Aug 29, 2005 at 10:06:00AM +0200, [EMAIL PROTECTED] wrote: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-1510948051-1125298763=

Re: [Rd] xerbla called from BLAS routine (PR#8100)

2005-08-29 Thread Göran Broström
On Mon, Aug 29, 2005 at 10:06:00AM +0200, [EMAIL PROTECTED] wrote: > This message is in MIME format. The first part should be readable text, > while the remaining parts are likely unreadable without MIME-aware tools. > > --27464147-1510948051-1125298763=:26166 > Content-Type: TEXT/PLAIN; char

Re: [Rd] Fwd: segfault

2005-08-29 Thread Prof Brian Ripley
It does not crash for me on either Windows or Linux, but it does take a long time and the plot is a mess, so there does seem to be a lattice-related problem (maybe a usage one). However, I think the crash is a Mac (presumably quartz()) problem. On Mon, 29 Aug 2005, stefano iacus wrote: > This

[Rd] Fwd: segfault

2005-08-29 Thread stefano iacus
This segfaults on OS X (10.4) on both X11 and quartz devices. Seems a problem with lattice but I cannot test on other platforms stefano Begin forwarded message: > From: "G. Sawitzki" <[EMAIL PROTECTED]> > Date: 28 agosto 2005 14:11:18 GMT+02:00 > To: [EMAIL PROTECTED] > > > Dear Stefano, > > th

Re: [Rd] xerbla called from BLAS routine (PR#8100)

2005-08-29 Thread ripley
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-1510948051-1125298763=:26166 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE I

Re: [Rd] xerbla called from BLAS routine (PR#8100)

2005-08-29 Thread ripley
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-1060265079-1125299740=:28726 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Pl