knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

drakeme(): Quickly jump into a drake workflow

flowme::drakeme()

flowme::drakeme() includes our boilerplate code for drake-powered projects in your current session. It is originally based on McBain's dflow and it is tailored to our report-generating projects.

Aims of this boilerplate

We put together this template, mainly, to:

Features to achieve those aims

These are the key features to achieve those aims (admittedly, some could be highly controversial. Yet, they work for us).

Here's the file structure flowme::drakeme() includes in your current project:

example_dir <- fs::dir_create(paste0(tempdir(), "/drake_example"))
xfun::in_dir(example_dir, flowme::use_drake())
xfun::in_dir(example_dir, fs::dir_tree(all = TRUE))
+-- .gitignore
+-- .Rbuildignore
+-- DESCRIPTION
+-- R
|   +-- 0_packages.R
|   +-- drakeme.R
|   +-- plan_bookme.R
|   \-- plan_sessioninfo.R
+-- report
|   +-- chapter1.Rmd
|   +-- _bookdown.yml
|   +-- _output.yml
|   \-- _style.docx
\-- _drake.R

Workflow notes

``` r the_plan <- drake::bind_plans(

plan_network_analysis(),
plan_survey_analysis(),
plan_financial_analysis(),
plan_bookme() # Just render the report using bookdown

) ```



edalfon/flowme documentation built on April 22, 2024, 7:37 p.m.