Skip to content
Discussion options

You must be logged in to vote

The general behavior you describe is intended because the default iteration argument of tar_target() is "vector", so slicing happens with vctrs::vec_slice(). vec_slice() behaves like [. If you want list indexing with [[, choose iteration = "list". Details: https://books.ropensci.org/targets/dynamic.html#iteration

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grimmjulian
Comment options

Answer selected by grimmjulian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants