I'm trying to understand how to use knitr_out
, file_out
and vis_drake_graph
properly in drake
.
I have two questions.
Q1: Usage of knitr_out
and file_out
to create markdown
reports
While a code like this works correctly for one of my smaller projects:
make_hyp_data_aggregated_report <- function() {
render(
input = knitr_in("rmd/hyptest-is-data-being-aggregated.Rmd"),
output_file = file_out("~/projectname/reports/01-hyp-test.html"),
quiet = TRUE
)
}
plan <- drake_plan(
...
...
hyp_data_aggregated_report = make_hyp_data_aggregated_report()
...
...
)
Exactly similar code in my large project (with ~10+ reports) doesn't work exactly right. i.e., while the reports get built, the knitr_in
objects don't get displayed as the blue squares in the graph using drake::vis_drake_graph()
in my large project.
Both projects use the drake::loadd(....)
within the markdown to get the objects from cache.
Is there some code in vis_drake_graph
that removes these squares once the graph gets busy?
Q2: file_out
objects in vis_drake_graph
Is there a way to display the file_out
objects themselves as circles/squares in vis_drake_graph
?
Q3: packages showing up in vis_drake_graph
Is there a way to avoid vis_drake_graph
from printing the packages explicitly? (Basically anything with the ::
)