Skip to content

setup_rawdata() and setup_readme() assume a single dataset named after the package #103

Description

@larnsce

Enhancement request from dogfooding washr 1.0.2 on a package with seven datasets (larnsce/aboutme).

Two places hardcode the one-dataset case:

  1. The data_processing.R template ends with usethis::use_data(<packagename>, overwrite = TRUE) and CSV/XLSX exports for that single object. With several datasets the whole export block needs rewriting by hand.
  2. setup_readme() documents only the alphabetically first dataset in data/; the other datasets need their preview and dictionary sections copied in manually.

The dictionary already knows every dataset (file_name column), so both templates could loop: the export block over the objects passed to use_data(), and the README data section over distinct(file_name). Alternatively, document the multi-dataset path in the vignette so the hand-editing is expected.

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