Description Usage Arguments Details Value Author(s)
make_file
Creates a Makefile based on the prerequisites and targets defined
on the yaml header of Rmd scripts.
1 | makefile(dir_src = "scripts", dir_blog = "docs", command = "")
|
dir_src |
Directory path of the Rmd scripts. |
dir_blog |
Directory path of your |
command |
Command to build rmd files to html. |
The prerequisites and targets of a Rmd files are defined on the yaml header using
parameters starting with "prer" or "targ" respectively. It is not required to put
the obvious prerequisite (the same Rmd file) and the obvious target (the
associated html file). An example of a yaml header is below:
—
title: Causal Analysis of COVID-19
prerequisites:
- data/counts.RData
- data/transportation.RData
targets:
- data/model/spatial.RData
- data/model/global.RData
—
A Makefile with the rules
Erick A. Chacón-Montalván
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.