Skip to content

use_lifecycle() raises an error, uses_roxygen_md() is confused by roclets #2073

Closed
@nkehrein

Description

My package's DESCRIPTION file contains the following lines:

RoxygenNote: 7.3.2
Roxygen: list(markdown = TRUE, roclets = c("collate", "namespace", "rd",
    "roxyglobals::global_roclet"))

When I try to execute the following statement to add support for the lifecycle package:
> usethis::use_lifecycle()
Then the following error appears:

Error in if (!uses_roxygen_md()) { : 
  missing value where TRUE/FALSE needed

I have tested this with usethis version 3.0.0 and R 4.3.0.

As far as I can tell, the issue is because of this check, which doesn't seem to account for the existence of roclets in the config object.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions