我在 Windows 系统中安装源包失败。我已经安装了 Rtools,以便根据以下链接上的讨论安装源包:http ://r.789695.n4.nabble.com/Installing-a-Package-tar-gz-in-windows-td3411393 .html。顺便说一句,只安装 Rtools 是可以的,不是吗?我需要运行 Rtools 吗?(PS:adapter_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
任何建议将不胜感激。