makefile: Create Makefile for Rmd Files

Description Usage Arguments Details Value Author(s)

View source: R/makefile.R

Description

make_file Creates a Makefile based on the prerequisites and targets defined on the yaml header of Rmd scripts.

Usage

1
makefile(dir_src = "scripts", dir_blog = "docs", command = "")

Arguments

dir_src

Directory path of the Rmd scripts.

dir_blog

Directory path of your blogdown web inside your project.

command

Command to build rmd files to html.

Details

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

Value

A Makefile with the rules

Author(s)

Erick A. Chacón-Montalván


ErickChacon/reprodown documentation built on Aug. 12, 2021, 9:59 p.m.