-
Notifications
You must be signed in to change notification settings - Fork 261
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
Fall back to sys env var if R option doesn't exist #934
Conversation
R/options_plumber.R
Outdated
default | ||
} else { | ||
if (res %in% c("TRUE", "FALSE")) { | ||
return(as.logical(res)) | ||
} | ||
res | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetic
default | |
} else { | |
if (res %in% c("TRUE", "FALSE")) { | |
return(as.logical(res)) | |
} | |
res | |
} | |
return(default) | |
} | |
if (res %in% c("TRUE", "FALSE")) { | |
return(as.logical(res)) | |
} | |
res |
I'm investigating using package |
Yes, it looks promising! https://dgkf.github.io/options/articles/options.html We could probably soft deprecate |
* main: (28 commits) feat: add `excel` serializer/parser (#975) ci: Error on spelling (#981) docs: Improve forward docs a bit (#978) Fix file path tests on windows (#979) bug: Update default debug behaviour to `FALSE` (#976) perf: Avoid disk I/O during parsing (#972) docs: Add note on annotating required parameters (#971) Allows port to be specified as an environment variable (#963) tests: Replace `with_mock()` with `with_mocked_bindings()` (#970) feat(serializer): Add support for ragg and svglite (#964) chore: Fix pkgdown warnings. Use lifecycle inline R badges (#965) v1.2.2 release candidate (#948) bug: Use `{rlang}` instead of `{ellipsis}` (#958) docs: Update URLs (#954) docs: fix table spacing (#951) docs: change link to httr2 in routing and input vignette (#944) Specify interactive mode in doc (#932) Fall back to sys env var if R option doesn't exist (#934) Add support for quoted boundary for multipart request parsing. (#924) chore: Remove parse comment to match implementation (#931) ...
…umber`.
PR task list:
devtools::document()
Setting an option that requires a function using an environment variable with most likely fail. Environment variable are characters.