roxygen2 没有记录新项目

roxygen2 not documenting a new project

我正在尝试使用 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,但无济于事。

如有任何帮助,我们将不胜感激

检查 DESCRIPTION 文件中的空行。

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).

这解决了我的问题。