Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: use_pins replacement for use_data #2103

Open
rjchallen opened this issue Feb 8, 2025 · 0 comments
Open

Feature request: use_pins replacement for use_data #2103

rjchallen opened this issue Feb 8, 2025 · 0 comments

Comments

@rjchallen
Copy link

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.

@rjchallen rjchallen changed the title Feature request: use_pins for replaing use_data Feature request: use_pins replacement for use_data Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant