作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的个人库在 ~/.Renviron 中设置为 R_LIBS=~/.R/lib。当我从 rstudio 安装软件包时,这非常有效。当我尝试从普通的 R 控制台 session 安装新软件包时,它总是问我:
Would you like to use a personal library instead? (y/n) y
Would you like to create a personal library
~/R/x86_64-redhat-linux-gnu-library/3.1
to install packages into? (y/n) n
最佳答案
是的,我总是在我使用的系统上取消它,我什至试图将它排除在我维护的 Debian 软件包之外。在 Debian 中,我们使用
/usr/lib/R/library for core R packages shipping with R
/usr/lib/R/site-library for r-cran-* packages from the distro
/usr/local/lib/R/site-library for what the user installs from CRAN
R> .libPaths()
[1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library" \
"/usr/lib/R/library"
R>
#R_LIBS_USER=${R_LIBS_USER-'~/R/x86_64-pc-linux-gnu-library/3.1'}
#R_LIBS_USER=${R_LIBS_USER-'~/Library/R/3.1/library'}
# edd Apr 2003 Allow local install in /usr/local, also add a directory for
# Debian packaged CRAN packages, and finally the default dir
# edd Jul 2007 Now use R_LIBS_SITE, not R_LIBS
R_LIBS_SITE=${R_LIBS_SITE-'/usr/local/lib/R/site-library:\
/usr/lib/R/site-library:/usr/lib/R/library'}
关于r - 设置 R_LIBS 并避免 "Would you like to use a personal library instead?",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29969838/
我的个人库在 ~/.Renviron 中设置为 R_LIBS=~/.R/lib。当我从 rstudio 安装软件包时,这非常有效。当我尝试从普通的 R 控制台 session 安装新软件包时,它总是问
我是一名优秀的程序员,十分优秀!