Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11849

[R] Use roxygen @examplesIf tag in R docs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 5.0.0
    • R

    Description

      The development version of roxygen2 supports a new tag @examplesIf to include examples conditionally: https://github.com/r-lib/roxygen2/commit/513c9e25262e67e7d3383a0feb51be0ba9b6e21f

      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.

      Attachments

        Issue Links

          Activity

            People

              thisisnic Nicola Crane
              icook Ian Cook
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h