tryCatch({ library(drake) loadd(fit) print(fit) readd(hist) }, error = function(e) { stop("please read the instructions in the R Markdown file.") })
This file report.Rmd
belongs to the example from this chapter of the user manual and drake_example("main")
. The report does not compile from scratch because it is a file target in a drake
-powered reproducible workflow (details here).
To compile this report,
report.Rmd
(or modify the knitr_in("report.Rmd")
line in make.R
accordingly).raw_data.xlsx
is in your current working directory.drake
and tidyverse
packages. make.R
(included with this template) to run the drake
workflow that compiles this report.Step 3 not only generates the output file report.hml
, but also produces a .drake/
cache in your working directory, which enables report.Rmd
to compile on its own with with RStudio, knitr
, or rmarkdown
. A great way way to generate report.hml
is still make(plan)
. That way, compilation happens if and only if there were changes to report.Rmd
, report.hml
, fit
, or hist
since the last make()
.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.