How to install the R package worldwide so that it is available to all users? I'm currently doing
R.exe CMD INSTALL *.zip
But it does
* installing to library 'C:/Users/Matt/Documents/R/win-library/2.15'
I would like to install packages along with R in the "Windows program files".
C:\Program Files\. , . R , , R ( ). , . cmd .
C:\Program Files\
cmd
R, < <22 > , .
:
install.packages("MyPackage", lib="C:\\Program Files\\R\\R-3.0.1\\library")
Program Files - , C:\\Users\\Mike\\Documents\\R\\...
Program Files
C:\\Users\\Mike\\Documents\\R\\...
, .libPaths() , , C:\\Program Files\\R\\R-3.0.1\\library
.libPaths()
C:\\Program Files\\R\\R-3.0.1\\library
Here is a way to specify where to look or install libraries. You can put libraries in a shared directory.
http://cran.r-project.org/doc/manuals/R-admin.html#Managing-libraries