In Ubuntu, I am installing all the R packages in the directory, /usr/lib/R/site-library
by specifying lib
option in install.packages()
.
But when I try to install the development version of the R packages using, install_github()
, it always installs in a local repository of the system user.
.libPaths()
has 4 directories including the local repository. So, I have 2 questions,
Will it install in any of the other 3 repositories if i remove the local repository from
.libPaths()
?Is there any way to specify installation library path in
install_github()
?
I am using Ubuntu 12.04 64bit
and R 3.0.1
----------------------UPDATE--------------------------------
Unable to remove the local repository from
.libPaths()
If I try to install using
install_github()
in RStudio, it installs in thelocal repository
sincelib
is not specified.If I try to install using
install_github()
as non-root user, it installs in thelocal repository
sincelib
is not specified.If I try to install using
install_github()
as root user, it installs in the/usr/local/lib/R/site-library
sincelib
is not specified.
Is there any to specify installation lib
?