我正在尝试使用roxygen2记录一个新的R项目。我使用的是roxygen2版本6.1.1和desc版本1.2.0。
我已经尝试了roxygen2::roxygenise()和devtools::document()命令,但在这两种情况下,我都得到了相同的错误:
Updating documentation
First time using roxygen2. Upgrading automatically...
Error in if (any(mismatch <- res != res2)) { : missing value where TRUE/FALSE needed我已经研究了以下问题:roxygen new project issue,并尝试遵循重新安装roxygen和desc的建议,但没有效果。
任何帮助都将不胜感激
发布于 2020-08-26 18:02:08
检查描述文件中是否有空行。
Authors@R:
person(given = "First",
family = "Last",
role = c("aut", "cre"),
email = "first.last@example.com",
comment = c(ORCID = "YOUR-ORCID-ID"))
<- this line is blank, remove!
Description: What the package does (one paragraph).这为我解决了问题。
https://stackoverflow.com/questions/61899483
复制相似问题