注意:在R CRAN中检查---未设置存储库,因此跳过了循环依赖项检查 [英] NOTE in R CRAN check ---No repository set, so cyclic dependency check skipped
问题描述
我已阅读在R CRAN Check中的注释:未设置存储库,因此跳过了循环依赖项检查,据我所知,我们遵循了建议.具体来说,我在~/
中有一个.Rprofile
文件,其行为options(repos = c(CRAN=\"http://cran.r-project.org\")
.我在页面底部运行了bash脚本,但仍然有两个注释,而不是我期望的有关新提交的注释.
I have read NOTE in R CRAN Check: No repository set, so cyclic dependency check skipped and to the best of my knowledge followed the suggestions. Specifically I have an .Rprofile
file in ~/
with the line options(repos = c(CRAN=\"http://cran.r-project.org\")
. I ran the bash script at the bottom of the page and still have two notes instead of the one I would expect about a New submission.
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
在运行R CMD check --as-cran
时如何消除有关No repository set, so cyclic dependency check skipped
的第二条注释的任何建议都将受到欢迎.在尝试创建更大的程序包时,我也会得到两个相同的注意事项.当我尝试使用RStudio作为值得编辑的东西来构建软件包时,会出现相同的两个注释.
Any suggestions how to eliminate the second note about No repository set, so cyclic dependency check skipped
when running R CMD check --as-cran
would be most welcome. I get the same two notes when trying to create a much larger package as well. The same two notes appear when I try to build a package using RStudio as the editor for what that is worth.
> 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
的内容,
To verify the contents of .Rprofile
I entered:
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
软件包的可能性是多少?
What is the likelihood CRAN will accept a package with the NOTE
No repository set, so cyclic dependency check skipped
?
推荐答案
我也遇到了您的问题,并通过向.Rprofile中添加以下内容来解决了该问题:
I had your problem too, and fixed it by adding the following to .Rprofile:
local({r <- getOption("repos"); r["CRAN"] <- "http://ftp.ussg.iu.edu/CRAN/"; options(repos = r)})
我认为您的问题是因为您没有指向特定的CRAN镜像. 您将需要更改存储库以反映离您最近的镜像.
I think your issue is because you're not pointing to a specific CRAN mirror. You will want to change the repository to reflect the mirror nearest you.
这篇关于注意:在R CRAN中检查---未设置存储库,因此跳过了循环依赖项检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!