HenrikBengtsson / startup

:wrench: R package: startup - Friendly R Startup Configuration
https://henrikbengtsson.github.io/startup/
163 stars 5 forks source link

Revisit: Currently envvar filter FOO=bar is ignore if FOO is not set #49

Closed HenrikBengtsson closed 6 years ago

HenrikBengtsson commented 6 years ago

As documented, currently envvar filename filter FOO=bar is ignore if FOO is not set. This could be confusing and it also prevents use of such things as including SECRETS=banana unless SECRETS is set to banana. Currently, it's also included when SECRETS is not set.

HenrikBengtsson commented 6 years ago

This will be the new behavior in next release. This way we can have:

.Renviron.d/private/SECRET=banana/
  +-- amazon  ## AWS_* credential & settings
  +-- github  ## GITHUB_TOKEN + GITHUB_PAT

and only have those "secrets" be loaded if launch R as:

$ SECRET=banana R

Any other value of SECRET, including if it is non-declared, will cause those files to be skipped.