包的安装据说可以这样,还没有试过: > install.packages() > update.packages(lib.loc="/usr/local/lib/R/site-library") Individual users can always install R packages into their home directory. The simplest procedure is to create a file ~/.Renviron containing, e.g., R_LIBS="~/lib/R/library:${R_LIBS}" The install.packages() and update.packages() will then work in the directory ~/lib/R/library.