Closed HenrikBengtsson closed 6 months ago
It is already the case that environment variables are read and parsed during package startup. Either way, I'll tidy up the code and borrow from Futureverse to simplify this.
Done. All options and env vars are now set in https://github.com/HenrikBengtsson/matrixStats/blob/develop/R/options.R, which also documents them. This should make it easier when we changing existing defaults, introducing new options/env vars, etc.
Following the Futureverse strategy, we should move to:
Only read and parse environment variables
R_MATRIXSTATS_NNN
during.onLoad()
These R env vars will set corresponding
matrixStats.nnn
R optionsOnly the R options will be used in the code
This will: