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

Move to target lists #254

Merged
merged 18 commits into from
Jan 3, 2021
Merged

Move to target lists #254

merged 18 commits into from
Jan 3, 2021

Conversation

wlandau
Copy link
Collaborator

@wlandau wlandau commented Jan 3, 2021

Prework

Related GitHub issues and pull requests

Summary

This PR allows users to call list() instead of tar_pipeline(). _targets.R files should end with target lists, and those target lists can be arbitrarily nested (lists within lists).

# _targets.R
library(targets)
list(
  tar_target(data, get_data()),
  tar_target(analysis, analyze_data(data))
)

tar_pipeline() and tar_bind() still work but are deprecated with a warning.

FYI @limnoliver and @tjmahr

@wlandau wlandau self-assigned this Jan 3, 2021
@codecov-io
Copy link

codecov-io commented Jan 3, 2021

Codecov Report

Merging #254 (3188e70) into main (258f9e0) will increase coverage by 0.14%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #254      +/-   ##
===========================================
+ Coverage   99.85%   100.00%   +0.14%     
===========================================
  Files         136       136              
  Lines        4239      4270      +31     
===========================================
+ Hits         4233      4270      +37     
+ Misses          6         0       -6     
Impacted Files Coverage Δ
R/tar_deduplicate.R 100.00% <ø> (ø)
R/tar_delete.R 100.00% <ø> (ø)
R/tar_destroy.R 100.00% <ø> (ø)
R/tar_glimpse.R 100.00% <ø> (ø)
R/tar_group.R 100.00% <ø> (ø)
R/tar_invalidate.R 100.00% <ø> (ø)
R/tar_load.R 100.00% <ø> (ø)
R/tar_make.R 100.00% <ø> (ø)
R/tar_make_clustermq.R 100.00% <ø> (ø)
R/tar_make_future.R 100.00% <ø> (ø)
... and 27 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 258f9e0...3188e70. Read the comment docs.

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.

None yet

2 participants