I have the following _targets.R, yet I get an "is not directed acyclic graph" error from the targets package when calling tar_make().
Is the zip file the problem? Is using namespaces instead of loading package the problem?
requireNamespace("targets")
namespaces = c("targets", "readr", "cmdstanr", "bayesplot", "posterior")
targets::tar_option_set(imports = namespaces)
source("R/project.R")
list(
targets::tar_target(
name = data_file,
command = "data/data_file.zip",
format = "file"),
targets::tar_target(
name = data,
command = readr::read_csv(data_file,
col_types = readr::cols())
)
)