CRAN Package submission - R CMD Checks

落爺英雄遲暮 提交于 2020-01-13 04:16:07

问题


I was building a package that I wanted to submit to CRAN. I completed R CMD checks (using devtools::check()) and ensured that I fix all errors, warnings and notes before I build my package (devtools::build) and then submit the resulting tar.gz file to CRAN.

However, apparently, the package failed the R CMD checks at CRAN (There was one note and one error, as per their mail). Now my question was, why wasn't this picked up when I ran the checks at my end?

To provide some specifics - One of the notes was regarding the usage of a few functions from stats package. I hadn't specifically imported these functions in my namespace.

While this seems to be an easy enough fix, it's mildly irritating (I would have ideally expected to find this while I was running my checks)

How can I avoid such situations in the future?

Thanks!

来源:https://stackoverflow.com/questions/34421013/cran-package-submission-r-cmd-checks

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!