bcgov / bcgov/climr

allow setting climr cache path via environment variable

Open
#274 1 comment 0 reactions 1 assignee Claimed by @kdaust View on GitHub
enhancement
Dominant language
R
Stars
19
Forks
6
PR merge metrics
No merged PRs in 30d

Description

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., ).

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.