R错误在启动时安装包

时间:2014-07-25 20:50:59

标签: r

当我在我的Windows机器上启动R时,我会在日志下面。为什么我会在下面收到2个错误?我怎么能调试它们?问题与包Arules和Matrix有关吗?为什么我只为这两个包收到此错误?我还在同一个地方安装了其他的包......

当它说“以下对象被'package:base'掩盖时,它是什么意思: “?

R version 3.1.0 (2014-04-10) -- "Spring Dance"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)


R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/.RData]

**Error installing package: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Error installing package: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.**

Loading required package: arules
Loading required package: Matrix

Attaching package: ‘arules’

The following objects are masked from ‘package:base’:

    %in%, write

2 个答案:

答案 0 :(得分:1)

这可能与R的安装位置中的空格有关,不建议参见:

Error installing R Packages

答案 1 :(得分:0)

你刚刚重新安装R?当它试图重新加载旧的.RData文件并且正在寻找不再存在的东西时,它似乎在抱怨。它也可能是文件名中的空格问题。我通常会覆盖默认路径并在路径中没有空格的目录中安装R(通常是C:\ Apps \ R \ R-3.1.0,其中Rtools在C:\ Apps \ R \ Rtools中)。这使得批处理脚本不那么麻烦......