Re: [Rd] Calling Rscript from Makevars

2011-05-26 Thread Sean Robert McGuffee
Thanks for the help! On 5/23/11 8:58 PM, "Simon Urbanek" wrote: > Sean, > > On May 23, 2011, at 2:03 PM, Sean Robert McGuffee wrote: > >> >> On 5/23/11 1:30 PM, "Simon Urbanek" wrote: >> >>> >>> On May 23, 2011, at 12:56 PM, Sean Robert McGuffee wrote: >>> I'm not sure what you mean

Re: [Rd] Calling Rscript from Makevars

2011-05-23 Thread Simon Urbanek
Sean, On May 23, 2011, at 2:03 PM, Sean Robert McGuffee wrote: > > On 5/23/11 1:30 PM, "Simon Urbanek" wrote: > >> >> On May 23, 2011, at 12:56 PM, Sean Robert McGuffee wrote: >> >>> I'm not sure what you mean by, "any tests you run in configure will ignore >>> it >>> since autoconf only us

Re: [Rd] Calling Rscript from Makevars

2011-05-23 Thread Sean Robert McGuffee
On 5/23/11 1:30 PM, "Simon Urbanek" wrote: > > On May 23, 2011, at 12:56 PM, Sean Robert McGuffee wrote: > >> I'm not sure what you mean by, "any tests you run in configure will ignore it >> since autoconf only uses LIBS and not PKG_LIBS." I though autoconf used any >> variable names you tel

Re: [Rd] Calling Rscript from Makevars

2011-05-23 Thread Simon Urbanek
On May 23, 2011, at 12:56 PM, Sean Robert McGuffee wrote: > I'm not sure what you mean by, "any tests you run in configure will ignore it > since autoconf only uses LIBS and not PKG_LIBS." I though autoconf used any > variable names you tell it to, so that it would use PKG_LIBS if you tell it

Re: [Rd] Calling Rscript from Makevars

2011-05-23 Thread Sean Robert McGuffee
Hi Simon, I'm not sure what you mean by, "any tests you run in configure will ignore it since autoconf only uses LIBS and not PKG_LIBS." I though autoconf used any variable names you tell it to, so that it would use PKG_LIBS if you tell it to. Also, I'm still not clear as to what a Makevars file

Re: [Rd] Calling Rscript from Makevars

2011-05-23 Thread Martyn Byng
-project.org] Sent: 20 May 2011 20:17 To: Martyn Byng Cc: r-devel@r-project.org Subject: Re: [Rd] Calling Rscript from Makevars On May 20, 2011, at 12:04 PM, Martyn Byng wrote: > Hi, > > I am trying to package some code to use with R and wanted to call > Rscript from within the Makevar

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Simon Urbanek
Sean, On May 20, 2011, at 9:00 PM, Sean Robert McGuffee wrote: > >> Note that setting PKG_LIBS in configure won't work since configure doesn't >> know how to handle it. It may be ok if you don't care that the flags won't be >> checked, but then you better know what you're doing ;). >> > Why wou

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Sean Robert McGuffee
> >> I still haven't figured out how to do the Makevars thing, > > > It's very simple - just remove all targets from your Makefile and you have > Makevars since R will do the compilation and linking for you and correctly. If > you feel like it, you can override its behavior by adding one rule

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Sean Robert McGuffee
> Note that setting PKG_LIBS in configure won't work since configure doesn't > know how to handle it. It may be ok if you don't care that the flags won't be > checked, but then you better know what you're doing ;). > Why wouldn't PKG_LIBS work in configure? configure.ac: PKG_LIBS=`${R_HOME}/bin

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Simon Urbanek
This is unrelated to the original question, so clarifications inline for posterity. On May 20, 2011, at 3:15 PM, Sean Robert McGuffee wrote: > Hi, > I've found this type of thing to be extremely confusing, myself, but I > managed to get something to work. I'm not sure how well. I also don't know

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Simon Urbanek
On May 20, 2011, at 12:04 PM, Martyn Byng wrote: > Hi, > > I am trying to package some code to use with R and wanted to call > Rscript from within the Makevars file (I am trying to automate the > setting of the location of a third party library depending on what is > available / the system the p

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Sean Robert McGuffee
Hi, I've found this type of thing to be extremely confusing, myself, but I managed to get something to work. I'm not sure how well. I also don't know if R is running autoconf or just configure--at least I don't remember off the top of my head. However, here are some examples of commands I put in my

[Rd] Calling Rscript from Makevars

2011-05-20 Thread Martyn Byng
Hi, I am trying to package some code to use with R and wanted to call Rscript from within the Makevars file (I am trying to automate the setting of the location of a third party library depending on what is available / the system the package is being installed on). If I just have a simple Makevar