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

Evaluate usage of R User Directories for storing larger datasets #377

Open
brownag opened this issue Mar 3, 2025 · 0 comments
Open

Evaluate usage of R User Directories for storing larger datasets #377

brownag opened this issue Mar 3, 2025 · 0 comments

Comments

@brownag
Copy link
Member

brownag commented Mar 3, 2025

Consider storing data in the standard local directory returned by tools::R_user_dir(package = "soilDB", which = "cache") i.e. "C:/Users/<User.Name>/AppData/Roaming/R/data/R/soilDB"

Would probably be useful to provide a couple functions to streamline access, versioning, and cleanup of the cache.

For starters, we could cache the MLRA polygons that are returned by fetchSDA_spatial(geom.src = "mlrapolygon") downloaded from https://www.nrcs.usda.gov/sites/default/files/2022-10/MLRA_52_2022.zip

This would be helpful for providing more realistic testing datasets, and also separating large or complex datasets from the package installation itself--making the installation smaller and less prone to issues.

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

1 participant