[Rd] AIX testers needed

2007-03-28 Thread Prof Brian Ripley
With much thanks to Ei-ji Nakama, R 2.5.0 alpha supports building on AIX (at least AIX 5.2 on one system). Would anyone able to test this please get the latest tarball from http://cran.r-project.org/src/base-prerelease/R-latest.tar.gz and try installing (after reading the AIX notes in R-admin.h

Re: [Rd] [R] Use of 'defineVar' and 'install' in .Call

2007-03-28 Thread Daniel Berg
Thanks for your suggestions Douglas, I just discovered the asInteger, asReal etc. but did not know of ScalarInteger etc. Will examine these immediately. I am very new to .Call and SEXP, just started experimenting with these. Previously I have been using .C for all my functions, transforming a matr

Re: [Rd] Fwd: Re: documentation clarifications (PR#9587)

2007-03-28 Thread murdoch
On 3/28/2007 8:50 AM, Duncan Murdoch wrote: > On 3/27/2007 11:36 PM, Richard M. Heiberger wrote: >> I verified that this is a difference in behavior in both the released 2.4.1 >> for Windows >> and the "2.5.0 Under development (unstable) (2007-02-10 r40690)" for Windows. >> In htmlhelp, the word "

Re: [Rd] Suggestion for memory optimization and as.double() with friends

2007-03-28 Thread Prof Brian Ripley
On Wed, 28 Mar 2007, Duncan Murdoch wrote: > On 3/28/2007 5:25 PM, Henrik Bengtsson wrote: >> Hi, >> >> when doing as.double() on an object that is already a double, the >> object seems to be copied internally, doubling the memory requirement. >> See example below. Same for as.character() etc.

Re: [Rd] Suggestion for memory optimization and as.double() with friends

2007-03-28 Thread Duncan Murdoch
On 3/28/2007 8:17 PM, Henrik Bengtsson wrote: > On 3/28/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >> On 3/28/2007 5:25 PM, Henrik Bengtsson wrote: >>> Hi, >>> >>> when doing as.double() on an object that is already a double, the >>> object seems to be copied internally, doubling the memory requ

Re: [Rd] Suggestion for memory optimization and as.double() with friends

2007-03-28 Thread Henrik Bengtsson
On 3/28/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 3/28/2007 5:25 PM, Henrik Bengtsson wrote: > > Hi, > > > > when doing as.double() on an object that is already a double, the > > object seems to be copied internally, doubling the memory requirement. > > See example below. Same for as.cha

Re: [Rd] [R] Use of 'defineVar' and 'install' in .Call

2007-03-28 Thread Douglas Bates
I did read your second message about the problem symptoms disappearing but I thought that I might make a couple of suggestions about your code anyway. There are a number of helper functions declared in Rinternals.h such as ScalarReal, which is equivalent to your mkans. (Also ScalarInteger, Scalar

Re: [Rd] Suggestion for memory optimization and as.double() with friends

2007-03-28 Thread Duncan Murdoch
On 3/28/2007 5:25 PM, Henrik Bengtsson wrote: > Hi, > > when doing as.double() on an object that is already a double, the > object seems to be copied internally, doubling the memory requirement. > See example below. Same for as.character() etc. Is this intended? > > Example: > > % R --vanilla

[Rd] checking existence of active bindings

2007-03-28 Thread Tony Plate
Is there any way to check whether an active binding exists without actually calling the active binding? I'd like to be able to do something like exists("x", ...) and know whether "x" exists without actually fetching its value if it is an active binding (because it could consume significant res

Re: [Rd] Suggestion for memory optimization and as.double() with friends

2007-03-28 Thread Henrik Bengtsson
On 3/28/07, Henrik Bengtsson <[EMAIL PROTECTED]> wrote: > Hi, > > when doing as.double() on an object that is already a double, the > object seems to be copied internally, doubling the memory requirement. > See example below. Same for as.character() etc. Is this intended? > > Example: > > % R --

[Rd] Suggestion for memory optimization and as.double() with friends

2007-03-28 Thread Henrik Bengtsson
Hi, when doing as.double() on an object that is already a double, the object seems to be copied internally, doubling the memory requirement. See example below. Same for as.character() etc. Is this intended? Example: % R --vanilla > x <- double(1e7) > gc() used (Mb) gc trigger (Mb)

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Leonard Mada
Many thanks for the many kind replies. It is very reassuring to have support from a strong community. Hin-Tak Leung wrote: > Hmm, if all you are interested is reading/writing Excel spreadsheets > from R, there are much lighter and easier ways of doing it, than > hooking up with openoffice. Th

Re: [Rd] Limitation of dirname() and basename(): file.name() and file.dir() ?

2007-03-28 Thread cstrato
I am glad to hear that there seems to be some commitment for improvement, although I must admit, that I did not realize that both functions do not check if a name is a directory or a filename, even though the definition in "The Open Group Base Specifications" says: dirname - return the direct

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Kevin B. Hendricks
Hi, I would like to potentially become involved with this project. I am still learning about R-project internals but I have been digging around a lot in the internal R-code. That said, I am initimately familiar with OOo since I was involved as a volunteer for that project previously. I

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Marc Schwartz
On Wed, 2007-03-28 at 17:25 +0200, Peter Dalgaard wrote: > Sean Davis wrote: > > On Wednesday 28 March 2007 06:25, Roger Bivand wrote: > > > >> On Wed, 28 Mar 2007, Hin-Tak Leung wrote: > >> > >>> Hmm, if all you are interested is reading/writing Excel spreadsheets > >>> from R, there are m

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Peter Dalgaard
Sean Davis wrote: > On Wednesday 28 March 2007 09:20, Stefan Zimmermann wrote: > >> Still didn't get the point, or missed the topic ? >> > > I had gotten the point, yes--just trying to be helpful. I'm sorry it wasn't > taken as such. > > Your reply was largely to the point. Excel and

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Peter Dalgaard
Sean Davis wrote: > On Wednesday 28 March 2007 06:25, Roger Bivand wrote: > >> On Wed, 28 Mar 2007, Hin-Tak Leung wrote: >> >>> Hmm, if all you are interested is reading/writing Excel spreadsheets >>> from R, there are much lighter and easier ways of doing it, than >>> hooking up with openo

[Rd] Server transitions

2007-03-28 Thread Prof Brian Ripley
Later today the servers www.stats.ox.ac.uk ftp.stats.ox.ac.uk used by tests/internet.R (and also for Windows package downloads) will transition to new hardware (on new IP addresses). This may make access unstable until the DNS changes propagate through and web caches get flushed, so please do

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Prof Brian Ripley
I beieve Leonard Mada intended to contact R-core, from his penultimate para (our address is [EMAIL PROTECTED]). I only see any point in discussing this on R-devel if some non-R-core-developer wishes to volunteer to help -- otherwise R-core will discuss this. On Wed, 28 Mar 2007, Roger Bivand

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Sean Davis
On Wednesday 28 March 2007 09:20, Stefan Zimmermann wrote: > Still didn't get the point, or missed the topic ? I had gotten the point, yes--just trying to be helpful. I'm sorry it wasn't taken as such. Sean > It's OpenOffice.org and R not Excel and R, two totally different > products at leas

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Stefan Zimmermann
Still didn't get the point, or missed the topic ? It's OpenOffice.org and R not Excel and R, two totally different products at least from a philosophical standpoint. Not everybody is willing to pay license fee for Excel to be able to use R via a GUI. That's how the idea was born to integrate or b

Re: [Rd] Fwd: Re: documentation clarifications (PR#9586)

2007-03-28 Thread murdoch
On 3/27/2007 11:36 PM, Richard M. Heiberger wrote: > I verified that this is a difference in behavior in both the released 2.4.1 > for Windows > and the "2.5.0 Under development (unstable) (2007-02-10 r40690)" for Windows. > In htmlhelp, the word "interaction" is clickable and goes to the > inter

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Sean Davis
On Wednesday 28 March 2007 06:25, Roger Bivand wrote: > On Wed, 28 Mar 2007, Hin-Tak Leung wrote: > > Hmm, if all you are interested is reading/writing Excel spreadsheets > > from R, there are much lighter and easier ways of doing it, than > > hooking up with openoffice. The Perl people have had >

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Roger Bivand
On Wed, 28 Mar 2007, Hin-Tak Leung wrote: > Hmm, if all you are interested is reading/writing Excel spreadsheets > from R, there are much lighter and easier ways of doing it, than > hooking up with openoffice. The Perl people have had > Spreadsheet::ParseExcel and Spreadsheet::WriteExcel for years

Re: [Rd] Unexpected result of as.character() and unlist() appliedto a data frame

2007-03-28 Thread Heinz Tuechler
At 17:25 27.03.2007 +0200, Martin Maechler wrote: >> "Herve" == Herve Pages <[EMAIL PROTECTED]> >> on Mon, 26 Mar 2007 20:48:33 -0700 writes: > >Herve> Hi, >>> dd <- data.frame(A=c("b","c","a"), B=3:1) dd >Herve> A B 1 b 3 2 c 2 3 a 1 >>> unlist(dd) >Herve> A1 A2 A

Re: [Rd] Bridging R to OpenOffice

2007-03-28 Thread Hin-Tak Leung
Hmm, if all you are interested is reading/writing Excel spreadsheets from R, there are much lighter and easier ways of doing it, than hooking up with openoffice. The Perl people have had Spreadsheet::ParseExcel and Spreadsheet::WriteExcel for years (and they work quite well, personal experience). T

Re: [Rd] Rmpi and OpenMPI ?

2007-03-28 Thread Ramon Diaz-Uriarte
Hi Dirk, On Wednesday 28 March 2007 04:34, Dirk Eddelbuettel wrote: > Has anybody tried to use Rmpi with the OpenMPI library instead of LAM/MPI? > I have not, but I'd be very interested in whatever you find. One thing that stopped me as soon as I considered it is that, if I understand correctly,