You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
rjchallen
changed the title
Feature request: use_pins for replaing use_data
Feature request: use_pins replacement for use_data
Feb 8, 2025
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.
The text was updated successfully, but these errors were encountered: