0

我制作了一个包含 /scr 文件夹的包,我想在 Windows 7 中安装它。我安装了 Rtools for Windows 以防出现任何编译器问题,但是当我运行时:

> install.packages("mypackage.tar.gz", repos="NULL", type="source")

我仍然收到如下错误消息:

Installing package(s) into ‘C:/Users/UserName/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository NULL/src/contrib
Warning message:
package ‘mypackage.tar.gz’ is not available (for R version 2.15.1)

这是我的会话信息():

> sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252  LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats   graphics  grDevices utils   datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_2.15.1

在 Windows 7 中从源代码(使用 /src)安装 R 包是否缺少任何东西?谢谢!

4

0 回答 0