Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top