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

generate .Renviron files from WhiteboxTools options #97

Open
2 tasks
brownag opened this issue Feb 26, 2023 · 0 comments
Open
2 tasks

generate .Renviron files from WhiteboxTools options #97

brownag opened this issue Feb 26, 2023 · 0 comments

Comments

@brownag
Copy link
Member

brownag commented Feb 26, 2023

I am planning some improvements of documentation for WhiteboxTools environment variables and had an idea.

There should be a way to generate/append .Renviron files with the WhiteboxTools settings,
The .Renviron file would contain static paths and options so that subsequent loads of that project or on that machine have the users generated setup. It would support setting these env vars for an R session:

  • R_WHITEBOX_EXE_PATH

  • R_WHITEBOX_WD

  • R_WHITEBOX_VERBOSE

  • R_WHITEBOX_COMPRESS_RASTERS

  • R_WHITEBOX_MAX_PROCS

  • wbt_create_Renviron() - set target vars via list, settings.json or by name and create a .Renviron file or write to stdout (does not change package options until that file is read)

  • Use base::readRenviron() (optionally) in wbt_init(). Look in R and/or WBT working directories?

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

1 participant