The factory will help you handle multiple rmarkdown
reports at the
same time. Put your .Rmd
files in report_sources
, refer to any
external files in the .Rmd
using here::here()
, and you’re sorted.
report_sources
: (mandatory) put your .Rmd
documents there
(subfolders are OK)
data/
: (recommended) put your data in this folder (subfolders are
OK)
data/raw
: to store raw data, as read-onlydata/clean
: to store cleaned dataR/
: (recommended) put your external R scripts and functions, used in your
.Rmd
reports, in this folder (subfolders are OK)
outputs/
: (automatically created) the factory will store
report outputs there, using named and time-stamped folders
list_reports()
: lists reports currently stored in the factory
(only .Rmd
source files)
compile_report()
: compiles one single report, designated using the
file name or a non-ambiguous match; outputs will be stored in
outputs/
update_reports()
: compiles all report, using by default the most
recent version of each report; outputs will be stored in
outputs/
create a new factory using new_factory()
and move into this new
folder
go to report_sources/
, write your .Rmd
report, using the
provided examples as inspiration; remove the examples files.
check your report by compiling the .Rmd
manually if needed,
e.g. rmarkdown::render("foobar.Rmd")
; once you are
happy with the results, make sure you remove all output files from
the source folder
run update_reports()
to generate all outputs, or
compile_report("foobar")
if you just want to produce
time-stamped outputs for this report; check results in the folder
outputs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.