[R] automated library location

Matyas Sustik msustik at gmail.com
Sat Jan 28 01:35:39 CET 2012


Hi All,

Is there a way to find out the R library location that I could use in
a script or
Makefile?  For example for octave the mkoctfile compiler has the
following feature:

Well? > mkoctfile -p LFLAGS
-L/usr/lib/octave-3.2.4

This is quite useful to be used in Makefiles.  I am compiling a
dynamic object to be
used in R and my compile command has "-L/usr/lib/R/lib" in it.  However, if this
changes from distribution to distribution then hard coding it, is not optimal.

Thanks!
-Matyas



More information about the R-help mailing list