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

allow setting climr cache path via environment variable #274

Open
achubaty opened this issue May 24, 2024 · 1 comment
Open

allow setting climr cache path via environment variable #274

achubaty opened this issue May 24, 2024 · 1 comment

Comments

@achubaty
Copy link
Contributor

achubaty commented May 24, 2024

Setting the cache path via option climr.cache.path is useful for configuring e.g. a shared network-accessible location to store cached data, but it requires setup for each project.

Allowing the use of an environment variable (e.g., CLIMR_CACHE_PATH) lets a system administrator set this at the machine level via .Renviron, speeding up users' analyses once the network cache is built, and reducing network and storage pressure.

I would expect that the environment variable gets used if set, but if the option is set, the option takes precedence (see e.g., https://rstudio.github.io/renv/reference/config.html).

If you are open to a PR for this, I can prepare one.

@kdaust
Copy link
Collaborator

kdaust commented May 25, 2024

I think that's a great idea. If you're able to put a PR together, that would be much appreciated!

achubaty added a commit to FOR-CAST/climr that referenced this issue Aug 21, 2024
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

2 participants