Skip to content

non-syntactic argument names in usage #191

@yihui

Description

@yihui

For example, the usage should be f(_x) for the function below, but roxygen2 stripped off the backticks for some reason:

roc <- roxygen2:::rd_roclet()
out <- roxygen2:::roc_proc_text(roc, "
    #' Title.
    f <- function(`_x`) 1")[[1]]
roxygen2:::get_tag(out, "usage")$values
# <rd> f(_x)

Metadata

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