我的R启动脚本似乎产生了错误

时间:2012-06-11 21:05:39

标签: r

我注意到一周前我的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()

0 个答案:

没有答案
相关问题