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

Remove root src #130

Merged
merged 3 commits into from
Mar 5, 2024
Merged

Remove root src #130

merged 3 commits into from
Mar 5, 2024

Conversation

M-Kusumgar
Copy link
Contributor

@M-Kusumgar M-Kusumgar commented Mar 1, 2024

This allows us to specify root_src via an environment variable ORDERLY_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 their root_src.

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (2cf7d79) to head (f910e89).

❗ Current head f910e89 differs from pull request most recent head 8971d67. Consider uploading reports for the commit 8971d67 to get more accurate results

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.
📢 Have feedback on the report? Share it here.

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")
Copy link
Contributor Author

@M-Kusumgar M-Kusumgar Mar 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
env_src <- Sys.getenv("ORDERLY_REPORT_SRC")
env_src <- Sys.getenv("ORDERLY_SRC_ROOT", NA_character_)

Copy link
Contributor Author

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)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
is_env_src_empty <- !nzchar(env_src)
is_env_src_empty <- is.na(env_src)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@M-Kusumgar M-Kusumgar requested review from richfitz and r-ash March 5, 2024 17:07
@M-Kusumgar M-Kusumgar merged commit a460561 into main Mar 5, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

3 participants