Skip to content

Dynamic examples, take two #962

@gaborcsardi

Description

@gaborcsardi

PoC implementation is here: https://github.com/gaborcsardi/dynex#readme

  • Uses \dontshow{} tags to hide the check for the condition.
  • No more \Sexpr{} tags, so don't need to install the package for R CMD build.
  • Multiple @dynex tags work fine.

To include this in roxygen2, we would need to just copy over the code, probably rename the tag to @examplesIf, and add support for this in R6 classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions