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

How to distribute data with your R package - R-hub blog #112

Open
utterances-bot opened this issue May 29, 2020 · 3 comments
Open

How to distribute data with your R package - R-hub blog #112

utterances-bot opened this issue May 29, 2020 · 3 comments

Comments

@utterances-bot
Copy link

How to distribute data with your R package - R-hub blog

https://blog.r-hub.io/2020/05/29/distribute-data/

Copy link

How would you recommend setting up a package that provides functions to work with a dataset that you don’t have the right to distribute? eg an international collaborative study where users must individually register and apply to download the files. What would be the best, and fault-tolerant, way for the package to be pointed to where the data files are, and for functions to only run if the location and presence of the files is established? Would be very interested to see examples of such packages and how they handle this.

@maelle
Copy link
Member

maelle commented May 30, 2020

That's an interesting question. My first thought would be to (ask the users or have a function) set an environment variable corresponding to the path where the data are saved once the person got access. If the environment variable isn't set, functions could error with an informative error message.

I thought of two packages, that however rely on a central service for users to get access to data so not sure how much their source &docs can help.

@maelle
Copy link
Member

maelle commented May 30, 2020

I am guessing https://docs.ropensci.org/osfr/ could also help as a way to manage the data. Your question seems very focused on a scientific use case, hence my foraging rOpenSci resources (that I know well, being part of rOpenSci team, hence biased). The rOpenSci forum https://discuss.ropensci.org might be a good place to get further insights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants