我无法在Windows上为R构建虚拟测试包。 用于测试目的,在R端子,我输入:为Windows编译R-pkakge -ERROR:编译包xxx失败
a=rnorm(10)
package.skeleton("pkgtest")
然后我运行该虚拟包R CMD check pkgtest
并得到了错误,如
* using R version 2.12.0 (2010-10-15)
* using platform: i386-pc-mingw32 (32-bit)
* using session charset: ISO8859-1
* checking for file 'pkgtest/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'pkgtest' version '1.0'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package 'pkgtest' can be installed ... ERROR Installation failed.
编辑,完整的日志文件:
* installing *source* package 'pkgtest' ...
** libs
cygwin warning:
MS-DOS style path detected: C:/R/R-212~1.0/etc/i386/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/R/R-212~1.0/etc/i386/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
ERROR: compilation failed for package 'pkgtest'
`* removing 'C:/DOCUME~1/xxxx'`
就是这样。我在数据文件夹中有一个数据a
,所以它不是空的。 Rd文件实际上可以编译成pdf格式,编号为Rcmd rd2pdf
,其标题不为空。
我是否错过了这个错误非常基本的东西?我安装了Rtools2.12。我甚至有包inline
和Rcpp
安装和运行的例子很好。 为了测试我的R环境设置,我下载了Rcpp源码包并在Rcpp
上做了R cmd check
,它没有问题。
Do R Core是否支持在cygwin下编译?我认为R for Windows需要mingw? – 2010-12-01 22:28:16
我不明白为什么有人把这个问题投下来-1。所以我把它重新回到0.这是一个有效的问题,包括示例代码,细节等。 – Choens 2010-12-03 00:23:25