Re: [Rd] Shrinking a List

2010-03-10 Thread Prof Brian Ripley
And how would you do this at R level? I would use length(A) <- M, and the corresponding C function is lengthgets. Of course, the wasteful part is to create a far-too-long vector in the first place, rather than growing it as needed. On Wed, 10 Mar 2010, Saptarshi Guha wrote: Hello, I creat

Re: [Rd] application to mentor syrfr package development for Google Summer of Code 2010

2010-03-10 Thread James Salsman
Michael, Thanks for your reply with the information about the Eureqa API -- I am forwarding it to the r-devel list below. Dirk, Will you please agree to referring to the syrfr package as symbolic genetic algorithm regression of functions but not (yet) general relations? It would be best to refe

[Rd] Shrinking a List

2010-03-10 Thread Saptarshi Guha
Hello, I create a VECSXP(call it A) with size N(~ 5000), i then proceed to fill the elements and find out I don't need to fill more than M (M<< N). Thus if i return A to the user's R code, he/she will see a list of length 5K of which N-M are NULLs. To avoid this, I create a new VECSXP B of length

Re: [Rd] R CMD check issue with soft-linked directory

2010-03-10 Thread Prof. John C Nash
Good catch Simon. Changed fstab to force exec on mount of the drive in question and things worked. Thanks, JN Simon Urbanek wrote: On Mar 10, 2010, at 12:43 , Prof. John C Nash wrote: I've been having some strange problems with R CMD check in the last couple of days, but now believe I hav

Re: [Rd] R CMD check issue with soft-linked directory

2010-03-10 Thread Simon Urbanek
On Mar 10, 2010, at 12:43 , Prof. John C Nash wrote: I've been having some strange problems with R CMD check in the last couple of days, but now believe I have localized the issue. I had been running Ubuntu Hardy on one drive and then upgraded to Jaunty, but put Jaunty on a different drive

Re: [Rd] [R] Using R in a corporate envinronment

2010-03-10 Thread David M Smith
If you're looking for business and technical justifications for a business to adopt R, I wrote some up last year: http://blog.revolution-computing.com/2009/02/how-to-get-it-to-accept-and-love-r.html In summary: R is mainstream R is supported R is high-quality R leads commercial packages in innovat

[Rd] R CMD check issue with soft-linked directory

2010-03-10 Thread Prof. John C Nash
I've been having some strange problems with R CMD check in the last couple of days, but now believe I have localized the issue. I had been running Ubuntu Hardy on one drive and then upgraded to Jaunty, but put Jaunty on a different drive. I continue to be able to boot Hardy when I wish. I soft-

[Rd] log2(quote(1:10)) evaluates the quoted 1:10, log() does not

2010-03-10 Thread William Dunlap
This is very minor, but shouldn't log2(quote(1:10)) throw an error,the same as log() and other math functions do? It looks like log2 and log10 evaluate a call object instead of throwing a non-numeric-argument error. They do object to non-call language objects, like expressions. > log2(quote(1:

Re: [Rd] Defining a method in two packages

2010-03-10 Thread Terry Therneau
Doug wrote: > I think a simpler solution, which I have implemented in lme4 but not > yet released is to have > importFrom(nlme, ranef, fixef) > in the NAMESPACE file of packages that implement methods for those > generics (and, of course, add nlme to the Imports: specification in > the DESCRIPTIO

Re: [Rd] Problem with gsl package

2010-03-10 Thread Hoptman, Matthew
Hi Martin, Good news. I got things to work. I think my gsl installation was corrupted. In any event, thanks for your help. Best, Matt -Original Message- From: Martin Becker [mailto:martin.bec...@mx.uni-saarland.de] Sent: Sunday, February 28, 2010 6:45 PM To: Hoptman, Matthew Cc: r-deve

Re: [Rd] Defining a method in two packages

2010-03-10 Thread Douglas Bates
I think a simpler solution, which I have implemented in lme4 but not yet released is to have importFrom(nlme, ranef, fixef) in the NAMESPACE file of packages that implement methods for those generics (and, of course, add nlme to the Imports: specification in the DESCRIPTION file). As nlme is a r