我已阅读NOTE in R CRAN Check: No repository set, so cyclic dependency check skipped据我所知,遵循了这些建议。具体来说,我有一个 .Rprofile
文件在 ~/
线路 options(repos = c(CRAN=\"http://cran.r-project.org\")
。我在页面底部运行了 bash 脚本,但仍然有两个注释,而不是我期望的关于新提交的注释。
bash-3.2$ ${R} CMD check --as-cran ${name}
* using log directory ‘/private/tmp/deptest.Rcheck’
* using R version 3.1.2 (2014-10-31)
* using platform: x86_64-apple-darwin13.4.0 (64-bit)
* using session charset: UTF-8
* checking for file ‘deptest/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘deptest’ version ‘1.0’
* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘John Doe <jdoe@doe.net>’
New submission
* checking package namespace information ... OK
* checking package dependencies ... NOTE
No repository set, so cyclic dependency check skipped
* checking if this is a source package ... OK
关于如何消除有关No repository set, so cyclic dependency check skipped
的第二个注释的任何建议运行时R CMD check --as-cran
将是最受欢迎的。当我尝试创建一个更大的包时,我也得到了同样的两个注释。当我尝试使用 RStudio 作为编辑器来构建一个包时,会出现相同的两个注释。
> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.1.2
验证.Rprofile
的内容我输入:
ip-152010130116:~ alan$ pwd
/Users/alan
ip-152010130116:~ alan$ open -a TextEdit .Rprofile
以及 .Rprofile
中的单行是
options(repos = c(CRAN = "http://cran.r-project.org"))
提前致谢
CRAN 接受带有 NOTE
No repository set, so cyclic dependency check skipped
的包裹的可能性有多大? ?
最佳答案
我也遇到了你的问题,并通过将以下内容添加到 .Rprofile 来修复它:
local({r <- getOption("repos"); r["CRAN"] <- "http://ftp.ussg.iu.edu/CRAN/"; options(repos = r)})
我认为你的问题是因为你没有指向特定的 CRAN 镜像。 您将需要更改存储库以反射(reflect)距离您最近的镜像。
关于r - R CRAN 检查中的注释 ---没有存储库集,因此跳过了循环依赖检查,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27046546/