Rprofile文件路径位于R安装目录下的etc目录下
也可在家目录建立.Rprofile文件更改配置
# Things you might want to change
# options(papersize="a4")
# options(editor="notepad")
# options(pager="internal")
# set the default help type
# options(help_type="text")
options(help_type="html")
# set a site library
# .Library.site <- file.path(chartr("\\", "/", R.home()), "site-library")
# set a CRAN mirror
# local({r <- getOption("repos")
# r["CRAN"] <- "http://my.local.cran"
# options(repos=r)})
# Give a fortune cookie, but only to interactive sessions
# (This would need the fortunes package to be installed.)
# if (interactive())
# fortunes::fortune()
options(bitmapType='cairo') # linux服务器png图片可用
options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor")
# Bioconductor设置为中科大的镜像
# options(BioC_mirror="http://mirrors.ustc.edu.cn/bioc/")
# CRAN设置成清华大学的镜像
# options(repos = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))