Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6031

R - How to set the path of install.packages() for shiny server ? - Ubuntu

$
0
0

For my system: Ubuntu 12.04 and R 3.03, whenever I install a custom package in R via

>install.packages()

the package is installed by default to

/home/USER/R/x86_64-pc-linus-gnu-library/3.0/ 

as opposed to system-wide in

/usr/local/lib/R/site-library/

which is needed for shiny-server to work with that package.

My temporary solution is to copy the packages to the correct folder after the fact.

Question: How can I set the default install path from the start to avoid this problem?


Viewing all articles
Browse latest Browse all 6031

Trending Articles