RApache does not find correct paths to packages

372 views Asked by At

I am trying to configure Apache on my Linux system, but it does not find the correct paths to R packages (and so it does not find the brew package).

I install R packages in ~/R/libs and, when running .libPaths() from an R session I get:

[1] "/home/nico/R/libs"    "/usr/lib/R/library"   "/usr/share/R/library"

However, if I configure RApache to show me RApacheInfo() by using

<Location /RApacheInfo>
SetHandler r-info
</Location>

in .libPaths RApache only reports

/usr/lib/R/library
/usr/share/R/library

How do I tell RApache to go looking in ~/R/libs?

1

There are 1 answers

4
Dirk is no longer here On BEST ANSWER

Per the RApache Configuration Documentation you could try the REvalOnStartup directive to set .libPaths() directly.