Skip to content

How to import all objects from a target pipeline ? #56

Answered by antoine-palazz
ThomasFaria asked this question in Q&A
Discussion options

You must be logged in to vote

You can run the targets::tar_load_everything() function to import all objects defined in the pipeline into the current environment. However, similar to Python, this approach can lead to naming conflicts and should be used with caution.
It is generally better to selectively import only the objects that are needed from the pipeline using targets::tar_read() function. This approach is more explicit, reduces the risk of naming conflicts, and makes the code easier to read and maintain.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThomasFaria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants