-
Hello! Thanks for the great package! I am currently trying to set up an automated workflow for generating an Rnw based article (spread across many Rnw's). For example, I have the situation, that there are some dependencies hidden inside of my Rnw's that are not detected by the dependency detection. list(
tar_target(data_for_rnw, iris),
tar_target(my_rnw, "file.Rnw", format = "file"),
tar_target(
my_tex,
{
invisible(data_for_rnw) # Dependency to `data_for_rnw`
knitr::knit(my_rnw)
},
format = "file"
)
) But maybe, you have a build in solution, I haven't seen? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I wrote |
Beta Was this translation helpful? Give feedback.
I wrote
tarchetypes::tar_render()
for this situation: https://docs.ropensci.org/tarchetypes/reference/tar_render.html, https://books.ropensci.org/targets/files.html#literate-programming. Dependencies are detected from calls totar_load()
andtar_read()
in the active R code chunks of the R Markdown source file.