Re: [Rd] Could you please add "time<-" as a generic function in the 'stats' package ?

2009-03-11 Thread John Chambers
The problems are related to masking objects (in this case `time<-` ) in the search list, not especially related to methods. It was in order to get around such problems that NAMESPACE was added to R. You should use it, but it applies to evaluating calls to functions in the package, by avoiding

[Rd] help.search(): "Error in .readRDS(hs_file) : error reading from connection" (PR#13591)

2009-03-11 Thread dmaszle
Full_Name: Don Maszle Version: R version 2.8.1 (2008-12-22) OS: Linux hood.mendelbio.com 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux Submission from: (NULL) (206.86.87.3) I have resolved the problem, but this is a possible regression to a problem listed in t

Re: [Rd] Building R for Vistax64

2009-03-11 Thread David M Smith
On Wed, Mar 11, 2009 at 1:15 PM, Sim, Fraser wrote: > Hi all, > > I have successfully built from source the 32-bit version of R on my > Vista 64-bit box. I was hoping to graduate to a 64-bit version so I > could analyze some larger data sets. I have 8gb RAM installed. We (REvolution Computing) ar

[Rd] better function name: make or as

2009-03-11 Thread Dan Kelley
I've written a function (for the 'oce' package) that takes a list of one type of object (a "station", observations made by a ship at one location), and creates another object (a "section", containing a sequence of station observations). My question is, should I name my function "make.section()" o

Re: [Rd] Building R for Vistax64

2009-03-11 Thread Prof Brian Ripley
Look in MkRules and the rw-FAQ. You can easily build R under Mingw64, but no one has reported making it run -- and several have reported failures. Commercail vendors have built 64-bit R under other Windwos compilers. On Wed, 11 Mar 2009, Sim, Fraser wrote: Hi all, I have successfully buil

Re: [Rd] Could you please add "time<-" as a generic function in the 'stats' package ?

2009-03-11 Thread Yohan Chalabi
"JC" == John Chambers on Wed, 11 Mar 2009 09:57:43 -0700 JC> Whatever one wants for an S3 generic, it's not needed to do what, JC> presumably, you want here. JC> JC> And for sure it is no excuse for S3 methods for S4 classes. JC> JC> Back to basics: To write S4 methods

[Rd] Building R for Vistax64

2009-03-11 Thread Sim, Fraser
Hi all, I have successfully built from source the 32-bit version of R on my Vista 64-bit box. I was hoping to graduate to a 64-bit version so I could analyze some larger data sets. I have 8gb RAM installed. I downloaded the latest 64-bit versions of Perl and MinGW but wasn't sure how to ed

Re: [Rd] surprising behaviour of names<-

2009-03-11 Thread Wacek Kusnierczyk
Simon Urbanek wrote: > > On Mar 11, 2009, at 10:52 , Simon Urbanek wrote: > >> Wacek, >> >> Peter gave you a full answer explaining it very well. If you really >> want to be able to trace each instance yourself, you have to learn >> far more about R internals than you apparently know (and Peter hin

Re: [Rd] surprising behaviour of names<-

2009-03-11 Thread Wacek Kusnierczyk
Simon Urbanek wrote: > Wacek, > > Peter gave you a full answer explaining it very well. If you really > want to be able to trace each instance yourself, you have to learn far > more about R internals than you apparently know (and Peter hinted at > that). Internally x=1 an x=c(1) are slightly differ

Re: [Rd] Compiling R-2.8.1 on Sparc Solaris 10: libRlapack.so: symbol __vlog_: referenced symbol not found

2009-03-11 Thread Prof Brian Ripley
Please try the options recommended in the R-admin manual: these do not include using sunperf. But if you want to choose your own options, ask your local Solaris help as this is not an R issue. On Wed, 11 Mar 2009, Mohammad Nikseresht wrote: Hi, I am compiling R2.8.1 on a Sun M4000 machine

[Rd] Compiling R-2.8.1 on Sparc Solaris 10: libRlapack.so: symbol __vlog_: referenced symbol not found

2009-03-11 Thread Mohammad Nikseresht
Hi, I am compiling R2.8.1 on a Sun M4000 machine with Solaris 10. I am using Sun Studio 12. I get the following error: cc -xtarget=native64 -G -L/usr/sfw/lib/sparcv9 -L/opt/csw/lib/sparcv9 -o grDevices.so chull.o devNull.o devPicTeX.o devPS.o devQuartz.o init.o mkdir ../../../../library/grDevi

Re: [Rd] Could you please add "time<-" as a generic function in the 'stats' package ?

2009-03-11 Thread John Chambers
Whatever one wants for an S3 generic, it's not needed to do what, presumably, you want here. And for sure it is no excuse for S3 methods for S4 classes. Back to basics: To write S4 methods for an existing function, the clean and simple way is usually: setGeneric("time<-") If your package de

Re: [Rd] E`<`

2009-03-11 Thread luke
Looks like an infinite recursion in R_isMissing, which I think may be turned into an infinite loop if the C compiler is doing tail call optimization. I need to understand why this is written the way it is and also why another case that I would expect to also have this problem does not before iden

Re: [Rd] surprising behaviour of names<-

2009-03-11 Thread Simon Urbanek
On Mar 11, 2009, at 10:52 , Simon Urbanek wrote: Wacek, Peter gave you a full answer explaining it very well. If you really want to be able to trace each instance yourself, you have to learn far more about R internals than you apparently know (and Peter hinted at that). Internally x=1 an

Re: [Rd] surprising behaviour of names<-

2009-03-11 Thread Simon Urbanek
Wacek, Peter gave you a full answer explaining it very well. If you really want to be able to trace each instance yourself, you have to learn far more about R internals than you apparently know (and Peter hinted at that). Internally x=1 an x=c(1) are slightly different in that the former

[Rd] generic method for median

2009-03-11 Thread Robert Hijmans
Sorry, I pressed the wrong button (tab in gmail is tricky) , here is my message again, now more complete, and with the right subject: I would like to write an S4 generic for 'median', but I am not sure how to do this properly as the function does not have a "..." argument I can do this setGeneric

Re: [Rd] configure fail for XML package on freebsd

2009-03-11 Thread Robert Hijmans
I would like to write an S4 generic for 'median', but I am not sure how to do this properly as the function does not have a "..." argument I can do this setGeneric("median", function(x, na.rm=FALSE) standardGeneric("median")) but I want to be able to pass it a number of objects of the sa

Re: [Rd] configure fail for XML package on freebsd

2009-03-11 Thread Hiroyuki Kawakatsu
On 3/11/09, Duncan Temple Lang wrote: [...] > > That should probably be > setenv LIBXML_INCDIR -I/usr/local/include/libxml2 > > (rather than having the additional /libxml after it.) OK, thanks. But this still fails. > Did you install libxml2 version 2.7.3 yourself, > i.e. separately from t

[Rd] Could you please add "time<-" as a generic function in the 'stats' package ?

2009-03-11 Thread Yohan Chalabi
Dear R developers, As you might have noticed, recent changes in R-dev will not allow the definition of S3 methods with S4 classes. But until now, we have defined "time<-" in our 'timeSeries' package as an S3 generic because other packages are using the same function. Indeed, if we had defin

Re: [Rd] configure fail for XML package on freebsd

2009-03-11 Thread Duncan Temple Lang
Hi Hiroyuki Hiroyuki Kawakatsu wrote: Hi, I am having problems installing the XML package with R-devel on freebsd. If I simply do install.packages("XML"), it says that the parser.h file is not found. After reading the INSTALL file, I have set setenv XML_CONFIG /usr/local/bin/xml2-config se

[Rd] configure fail for XML package on freebsd

2009-03-11 Thread Hiroyuki Kawakatsu
Hi, I am having problems installing the XML package with R-devel on freebsd. If I simply do install.packages("XML"), it says that the parser.h file is not found. After reading the INSTALL file, I have set setenv XML_CONFIG /usr/local/bin/xml2-config setenv LIBXML_LIBDIR -L/usr/local/lib setenv

Re: [Rd] website feature request - a roadmap (PR#13589)

2009-03-11 Thread Prof Brian Ripley
Have you seen developer.r-project.org? All the relevant information is there. For the medium-term (up to 6 months) the NEWS file in the R-devel version of R indicates currently intended changes. CRAN is a distribution network, and distinct from www.r-project.org and developer.r-project.org.

[Rd] website feature request - a roadmap (PR#13589)

2009-03-11 Thread dannychia
Full_Name: Danny Chia Version: 2.8.1 OS: Windows Submission from: (NULL) (169.229.100.137) This is more of a feature request, but it would be nice if the CRAN website had some sort of roadmap for R. That way, users would know what to expect for future versions of R. _