[go: up one dir, main page]

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

Do not modify config$envir during make() #620

Merged
merged 5 commits into from
Dec 15, 2018
Merged

Do not modify config$envir during make() #620

merged 5 commits into from
Dec 15, 2018

Conversation

wlandau
Copy link
Member
@wlandau wlandau commented Dec 15, 2018

Summary

Define a separate config$eval <- new.env(parent = config$envir) for loading built targets keeping them in memory. That way, we avoid modifying the user's environment, config$envir. It is a step closer towards purity.

Related GitHub issues and pull requests

Checklist

  • I have read drake's code of conduct, and I agree to follow its rules.
  • I have listed any substantial changes in the development news.
  • I have added testthat unit tests to tests/testthat to confirm that any new features or functionality work correctly.
  • I have tested this pull request locally with devtools::check()
  • This pull request is ready for review.
  • I think this pull request is ready to merge.

@codecov-io
Copy link
codecov-io commented Dec 15, 2018

Codecov Report

Merging #620 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #620   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          77     77           
  Lines        6739   6752   +13     
=====================================
+ Hits         6739   6752   +13
Impacted Files Coverage Δ
R/distributed.R 100% <ø> (ø) ⬆️
R/future.R 100% <ø> (ø) ⬆️
R/drake_debug.R 100% <ø> (ø) ⬆️
R/run.R 100% <100%> (ø) ⬆️
R/drake_graph_info_utils.R 100% <100%> (ø) ⬆️
R/hasty.R 100% <100%> (ø) ⬆️
R/create_drake_layout.R 100% <100%> (ø) ⬆️
R/triggers.R 100% <100%> (ø) ⬆️
R/session.R 100% <100%> (ø) ⬆️
R/envir.R 100% <100%> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9949248...992fd1f. Read the comment docs.

@wlandau wlandau merged commit 18634ff into master Dec 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants