Skip to content

Discussion: Reconsider @default tag #5

Description

@dgkf

This tag is "fake", it's processed within the @typed tag.

Right now the roxytypes package also has a feature that lets you generate a little snippet that describes a parameter's default value. roxytypes has the ability to parse this default value from the package, or use a provided default description using the @default value.

I think this is a cool capability, but it probably shouldn't be coupled to the @typed tag. You could just as readily want to document a default value for a regular @param, eg

#' @param var This is a description. @default FALSE

to generate something like

Arguments: 

    `var`: This is a description. (Defaults to `FALSE`)

Activity

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

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