-
Currently, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Unfortunately, the environment returned by library(targets)
tar_script({
library(targets)
library(gapminder)
dataset <- gapminder
list(tar_target(data_target, dataset))
})
tar_visnetwork() Created on 2021-03-21 by the reprex package (v1.0.0) |
Beta Was this translation helpful? Give feedback.
Unfortunately, the environment returned by
getNamespace()
does not include datasets, which is howtargets
would handle this. In cases where you do need to track a dataset from a package, you can assign it to a global variable in_targets.R
.Created on 2021-03-21 by the reprex package (v1.0.0)