[R] installing packages systemwide

2011-08-19 Thread Mary Kindall
I installed some downloaded packages in R. I always do $sudo R CMD INSTALL anRpackage.tar.gz By default it is storing these packages into my directory /home/mary/R/x86_64-pc-linux-gnu-library/2.13/. However I want them to be systemwide into /usr/local/lib/R/site-library/ folder. I tried $sudo

Re: [R] installing packages systemwide

2011-08-19 Thread Yihui Xie
Take a look at: R CMD INSTALL --help and you will realize that you need to specify the library path, e.g. R CMD INSTALL anRpackage --library=/usr/local/... or take a look at ?install.packages and use the second argument, e.g. install.packages('anRpackage', lib = '/usr/local/...') Regards,