Skip to content

Feature request: use_pins replacement for use_data #2103

@rjchallen

Description

@rjchallen

It would be nice to develop a simple workflow for using github / pkgdown hosted pins instead of standard R data files in a package, and have it working with minimal disruption to existing packages with data in them.

I'm thinking a 'use_data_raw' equivalent that sets up a pin_board and a 'use_pin' that adds data to the board, updating metadata etc, and adds in a package onLoad function that does a delayedAssign to the current variable name, that downloads and caches the pin from github when deployed or pulls it from local file location in development.

It would need to know where the github pages are being hosted, but there are sensible defaults that would work in 99% of time.

Happy to work something up as a pull request if there is support for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions