roxygen2未记录新项目

roxygen2未记录新项目,r,roxygen2,R,Roxygen2,我正在尝试使用roxygen2记录一个新的R项目。我使用的是roxygen2version6.1.1和descversion1.2.0 我已经尝试了两个命令roxygen2::roxygenise()和devtools::document(),但在这两种情况下,我都遇到了相同的错误: Updating documentation First time using roxygen2. Upgrading automatically... Error in if (any(mismatch &l

我正在尝试使用
roxygen2
记录一个新的R项目。我使用的是
roxygen2
version6.1.1和
desc
version1.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
更新文档
第一次使用roxygen2。自动升级。。。

if(any)错误(不匹配检查描述文件中的空行

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).
Authors@R: 
人(给定=“第一”,
family=“Last”,
角色=c(“aut”、“cre”),
email=“首先。last@example.com",
comment=c(ORCID=“YOUR-ORCID-ID”))

它告诉您代码中有错误。您可能需要将该行更改为
if(any(res!=res2))
,但我没有完整的代码,因此无法完全确定。在修复错误(以及可能弹出的其他错误)后它将允许您继续。@rpolicastro这是roxygen2代码,不是我的代码。请参阅问题中链接的最后二条注释。该用户得到了相同的错误