简体   繁体   English

CRAN 包检查发现警告 R CMD 检查 --as-cran 没有

[英]CRAN package check finds warning that R CMD check --as-cran doesn't

I recently submitted a package to CRAN and received the following errors.我最近向 CRAN 提交了一个包并收到以下错误。

WARNING: ignoring environment value of R_HOME警告:忽略 R_HOME 的环境值

checking for code which exercises the package ... WARNING No examples, no tests, no vignettes检查执行包的代码......警告没有示例,没有测试,没有小插曲

I ran R CMD check --as-cran using R 3.0.2 on OSX and the only note reported was 'New submission'.我在 OSX 上使用 R 3.0.2 运行 R CMD check --as-cran,报告的唯一注释是“新提交”。 No warnings were reported.没有报告任何警告。

Is there an alternate way to run all of the tests that CRAN will run on a package before submitting it?在提交包之前,是否有其他方法可以运行 CRAN 将在包上运行的所有测试?

There are several ways to test the package in different os.有几种方法可以在不同的操作系统中测试包。

devtools::check_rhub() # All os
devtools::check_win_devel() # windows
devtools::check_win_release() # windows
devtools::check_win_oldrelease() # windows

Or with continuous integration:或者持续集成:

usethis::use_github_actions() # all os
usethis::use_travis() # osx and linux
usethis::use_appveyor() # windows
usethis::use_circleci()

There are way more, but these are the most famous.还有更多的方式,但这些是最著名的。

Yes.是的。 By using win builder通过使用 win builder

http://win-builder.r-project.org/upload.aspx http://win-builder.r-project.org/upload.aspx

You just have to upload your source files and you will get the results in email within 5-10 minutes.您只需要上传您的源文件,您就会在 5-10 分钟内通过电子邮件收到结果。

Note: Don't forget to mention your email in maintainer field注意:不要忘记在维护者字段中提及您的电子邮件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM