0

一周前,我注意到我的 R 启动脚本开始运行下面的类型“q()”以退出 R

唯一不同的是我在 Rprofile.site 文件中设置了我的 Cran 镜像。

我在网上尝试过,在其他 Stackoverflow 帖子中也找不到解决方案。网上有人告诉我,我执行的 Cran 镜像设置应该与此无关。

你能帮忙吗?

Attempting to load the environment ‘package:R.utils’
R.methodsS3 v1.2.2 (2010-11-17) successfully loaded. See ?R.methodsS3 for help.
R.oo v1.9.3 (2012-03-18) successfully loaded. See ?R.oo for help.

Attaching package: ‘R.oo’

The following object(s) are masked from ‘package:R.methodsS3’:

    throw.default

The following object(s) are masked from ‘package:methods’:

    getClass, getClasses, getMethods

The following object(s) are masked from ‘package:base’:

    attach, detach, gc, load, save

R.utils v1.12.1 (2012-03-20) successfully loaded. See ?R.utils for help.

Attaching package: ‘R.utils’

The following object(s) are masked from ‘package:utils’:

    timestamp

The following object(s) are masked from ‘package:base’:

    cat, commandArgs, getOption, inherits, isOpen, lapply, parse,
    warnings

这是我的 Rprofile.site 文件规格:

# 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://cran.cnr.Berkeley.edu"
   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()
4

0 回答 0