Skip to content

[R] Use roxygen @examplesIf tag in R docs #27696

Closed

Description

@asfimport

The development version of roxygen2 supports a new tag @examplesIf to include examples conditionally: r-lib/roxygen2@513c9e2

Use this to remove the feature availability conditionals that are used in some examples, including:

  • if (arrow_available()) \{...\}

  • if (arrow_with_dataset()) \{...\}

  • if (arrow_with_parquet()) \{...\}

  • if (arrow_with_s3()) \{...\}

    This will simplify the examples and avoid giving the misleading suggestion that users need to perform these checks this every time.

Reporter: Ian Cook / @ianmcook
Assignee: Nicola Crane / @thisisnic

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-11849. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Mar 4, 2021

    @asfimport
    Author

    Ian Cook / @ianmcook:
    Update based on continued work in ARROW-11735:
    The arrow_with_dataset() and arrow_with_parquet() conditionals have been removed from all the examples, and examples that contained them have been wrapped in \dontrun instead of \donttest which gives us a stronger guarantee that these examples will not cause check failures. After using @examplesIf, switch these examples back to using \donttest, or use neither if that works.

  2. asfimport commented on May 27, 2021

    @asfimport
    Author

    Ian Cook / @ianmcook:
    Issue resolved by pull request 10373
    #10373

  3. added this to the 5.0.0 milestone on Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions