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

[Rd] non-R package development

2011-05-20 Thread Spencer Graves
Hello, All: What would you recommend for software to support developing software in languages other than R? I'm currently writing code in R to implement algorithms that may ultimately need to run with asynchronous, distributed computing in various languages including Python, Matlab, L

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