Skip to content

Sequences of whitespaces are interpreted as valid tag values #1228

Closed
@tzakharko

Description

@tzakharko

Roxygen2 detects missing tag values and produces a warning, however only empty strings "" are currently recognized as empty values. This leads to odd situations where e.g. @include is parsed without any warning.

Example:

text <- "
#' @include   
NULL
"
roxygen2::parse_text(text)

Metadata

Metadata

Assignees

No one assigned

    Labels

    R6 6️⃣bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions