Skip to content

Consider a generalization of data-raw/ #1698

Open

Description

@jennybc

I'm summarizing thoughts developed while revising R Packages (specifically, while working on the chapter about Other components). I have no plans to implement this now, i.e. to get it into the book or some such. It's a convention we could decide to adopt in the future and create a bit of tooling for.

Identified need: a place to store human- and machine-readable instructions for periodic maintenance tasks.

Currently maintainers store these in various places. The specific locations that got me thinking about this:

  • In tools/, but in the absence of configure and with tools/ listed in Rbuildignore. So an "off-label" repurposing of tools/. This results in the scripts being absent from both the package bundle and the installed package.
    • Examples: tzdb, renv, shiny, pkgcache
    • A variation you see of this is to not list tools/ in Rbuildignore, in which case tools/ appears in the package bundle, but not in the installed package. Examples at the time of writing: cli, pkgdown, plotly.R. I'm not sure this is really intentional (shipping tools/ in the bundle) vs. being an oversight.
  • In inst/tools/. Generally results in the scripts being present in the package bundle and installed package, which seems weird. Also, gets promoted to top-level tools/, which would seem to invite confusion with a tools/ directory that lives at the top-level in the source package.

Examples of tasks that would be natural to record in a folder of "maintenance / upkeep instructions":


Interesting uses of tools/ or inst/tools/ that don't fall under what we're describing above:

Activity

  1. added
    feature
    on Nov 7, 2022
  2. added this to the Backlog milestone on Jul 30, 2025
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

    code 🖥️feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions