-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove root src #130
Remove root src #130
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #130 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 40 40
Lines 3626 3626
=========================================
Hits 3626 3626 ☔ View full report in Codecov by Sentry. |
R/run.R
Outdated
root <- root_open(root, locate, require_orderly = TRUE, | ||
call = environment()) | ||
search_options = NULL, root = NULL, locate = TRUE) { | ||
env_src <- Sys.getenv("ORDERLY_REPORT_SRC") |
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.
env_src <- Sys.getenv("ORDERLY_REPORT_SRC") | |
env_src <- Sys.getenv("ORDERLY_SRC_ROOT", NA_character_) |
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.
done
R/run.R
Outdated
call = environment()) | ||
search_options = NULL, root = NULL, locate = TRUE) { | ||
env_src <- Sys.getenv("ORDERLY_REPORT_SRC") | ||
is_env_src_empty <- !nzchar(env_src) |
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.
is_env_src_empty <- !nzchar(env_src) | |
is_env_src_empty <- is.na(env_src) |
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.
done
This allows us to specify
root_src
via an environment variableORDERLY_SRC_ROOT
instead of users being able to pass this in as an argument. This is good because we don't really need the users to be passing in theirroot_src
.