[R] How to specify R CMD INSTALL arguments
Patrick Connolly
p_connolly at slingshot.co.nz
Sat Feb 20 09:02:17 CET 2010
On Fri, 19-Feb-2010 at 11:03PM +1300, Patrick Connolly wrote:
|> I've become a bit rusty using R CMD INSTALL from the shell prompt
|> since the install.packages normally works so well.
|>
|> One of the arguments to R CMD INSTALL is --configure-args=ARGS
|>
|> >From looking at the rsprng package's configure file, it would seem
|> that I need to be able to get this line to work:
|> SPRNG_INCLUDE="-I${SPRNG_ROOT}/include"
|>
|> My sprng.h is in /usr/local/sprng2.0/include/, so I think I need to
|> know how I specify what SPRNG_ROOT is with --configure-args. I
|> couldn't work out where braces, quotes and $ characters are used in
|> this context.
In case anyone finds this in the archives while looking for something
to do with --configure-args, I've eventually hit on the right syntax.
--configure-args='SPRNG_ROOT=/usr/local/sprng2.0'
So, no braces or $ characters. Double quotes might also work.
HTH
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Average minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Eleanor Roosevelt
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
More information about the R-help
mailing list