如何在Windows XP 32位操作系统中安装.tar.gz源包

时间:2013-02-13 18:35:59

标签: r

我在Windows系统中安装源包失败了。我已经安装了Rtools,以便根据以下链接提供的讨论安装源包:http://r.789695.n4.nabble.com/Installing-a-Package-tar-gz-in-windows-td3411393.html。顺便说一句,只安装Rtools是好的,不是吗?我需要运行Rtools吗? (PS:adapt_1.0-4.tar.gz放在R工作目录中)

> install.packages("adapt_1.0-4.tar.gz", type="source", repos=NULL) 
* installing *source* package 'adapt' ...
** Creating default NAMESPACE file
** libs
ERROR: compilation failed for package 'adapt'
* removing 'C:/Program Files/R/R-2.15.2/library/adapt'

warning:
1: running command'C:/PROGRA~1/R/R-215~1.2/bin/i386/R CMD INSTALL -l "C:/Program Files/R/R-2.15.2/library"   "adapt_1.0-4.tar.gz"'had 
status 1 

2: In install.packages("adapt_1.0-4.tar.gz", type = "source", repos = NULL) :
 installation of package ‘adapt_1.0-4.tar.gz’ had non-zero exit status 

任何建议都将不胜感激。

1 个答案:

答案 0 :(得分:0)

看看这个问题的接受答案:

How do I install an R package from the source tarball on windows?

如果您有任何特定问题,可以提出新问题。