[Rd] parse_Rd and/or lazyload problem

2009-10-29 Thread Mark.Bravington
I'm encountering problems when making lazy-loadable databases of the output from 'parse_Rd'. The lazy-load database is of seemingly limitless size when I try to reload it... Admittedly I am using functions that I'm not really supposed to use, which is why this isn't a bug report, but there does

Re: [Rd] unable to compile mgcv

2009-10-29 Thread Chuck White
Thanks for your response. In the past I have build R for RHEL and it was very simple. I did not have to do anything specific for certain libraries. I do see the .tgz file (actually it is a link to the original file which has version number too). Questions [1] do I need to unzip the tgz file, mak

Re: [Rd] Help with lang4

2009-10-29 Thread Simon Urbanek
On Oct 29, 2009, at 13:56 , Seth Falcon wrote: On 10/29/09 7:38 AM, Abhijit Bera wrote: Can't find the source to Rf_lang* series of functions. :| But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3); PROTECT(SETCAR(CDR(e),port

Re: [Rd] Help with lang4

2009-10-29 Thread Seth Falcon
On 10/29/09 7:38 AM, Abhijit Bera wrote: Can't find the source to Rf_lang* series of functions. :| But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3); PROTECT(SETCAR(CDR(e),portConstraints)); PROTECT(portVal=R_tryEval(e,R_Globa

Re: [Rd] Makevars, cc files in multiple directories

2009-10-29 Thread Paul Roebuck
On Thu, 29 Oct 2009, Saptarshi Guha wrote: > In the src folder of my R package I have > > a.cc > b.cc > f/g/x.cc > > my Makevars.in has > > all: $(SHLIB) > > upon installing only, a.o and b.o is build and the final dll is > comprised of a.o and b.o > > How can I instruct $(SHLIB) to pick up its so

[Rd] Makevars, cc files in multiple directories

2009-10-29 Thread Saptarshi Guha
Hello, In the src folder of my R package I have a.cc b.cc f/g/x.cc my Makevars.in has all: $(SHLIB) upon installing only, a.o and b.o is build and the final dll is comprised of a.o and b.o How can I instruct $(SHLIB) to pick up its source files from all subdirectories (or maybe a subset,

Re: [Rd] what should NCOL(NULL) return?

2009-10-29 Thread Tony Plate
Hiroyuki Kawakatsu wrote: Hi, I get (using r50188) nrow(NULL) NULL NROW(NULL) [1] 0 ncol(NULL) NULL NCOL(NULL) [1] 1 The last seems 'wrong' to me, though matrix(NA, 0, 1) appears to be well defined. Seems consistent with the documentation, which says

Re: [Rd] Help with lang4

2009-10-29 Thread Duncan Murdoch
On 29/10/2009 10:38 AM, Abhijit Bera wrote: Can't find the source to Rf_lang* series of functions. :| They're in src/include/Rinlinedfuns.h. Duncan Murdoch But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3); PROTECT(SETCAR

Re: [Rd] Help with lang4

2009-10-29 Thread Seth Falcon
On 10/29/09 7:00 AM, Abhijit Bera wrote: Hi I seem to have run into a situation where I have more than 3 arguments to pass to a function from C. the following functions help me build an expression for evaluation: lang lang2 lang3 lang4 What should one do if there are more arguments than lang4

Re: [Rd] Help with lang4

2009-10-29 Thread Abhijit Bera
Can't find the source to Rf_lang* series of functions. :| But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3); PROTECT(SETCAR(CDR(e),portConstraints)); PROTECT(portVal=R_tryEval(e,R_GlobalEnv, NULL)); Regards Abhijit Bera On Th

[Rd] Help with lang4

2009-10-29 Thread Abhijit Bera
Hi I seem to have run into a situation where I have more than 3 arguments to pass to a function from C. the following functions help me build an expression for evaluation: lang lang2 lang3 lang4 What should one do if there are more arguments than lang4 can handle? Regards Abhijit Bera

[Rd] what should NCOL(NULL) return?

2009-10-29 Thread Hiroyuki Kawakatsu
Hi, I get (using r50188) > nrow(NULL) NULL > NROW(NULL) [1] 0 > ncol(NULL) NULL > NCOL(NULL) [1] 1 The last seems 'wrong' to me, though matrix(NA, 0, 1) appears to be well defined. > blackhole = matrix(NA, 0, 1) > blackhole[,1] = 5 > blackhole [,1] h. -- +--- | Hiroyuki Kawakatsu | Busin

[Rd] In the result of applying 'bquote' to function definition with 2 or more arguments, first function argument disappears (PR#14031)

2009-10-29 Thread suharto_anggono
Full_Name: Suharto Anggono Version: 2.8.1 OS: Windows Submission from: (NULL) (125.165.81.124) Sorry for repost. There is already PR#9602, but the problem is still there. There is also a post "Re: [R] using bquote to construct function" in R-help 2008-10-02. This illustrates the problem. C:\Pr