R install globally

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".

+5
source share
3 answers

C:\Program Files\. , . R , , R ( ). , . cmd .

R, < <22 > , .

+5

:

install.packages("MyPackage", lib="C:\\Program Files\\R\\R-3.0.1\\library")

Program Files - , C:\\Users\\Mike\\Documents\\R\\...

, .libPaths() , , C:\\Program Files\\R\\R-3.0.1\\library

+2

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

+1
source

All Articles