[R] automated library location

R. Michael Weylandt michael.weylandt at gmail.com
Sat Jan 28 08:44:09 CET 2012


? libPaths
? .Library

Not sure how easily that gets to your makefile though.

Michael

On Fri, Jan 27, 2012 at 7:35 PM, Matyas Sustik <msustik at gmail.com> wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list