knitthis: Knit the Rmd file that is currently open

View source: R/knitthis.R

knitthisR Documentation

Knit the Rmd file that is currently open

Description

This is a convenient alternative to using the knit button when you want to specify additional arguments such as output directory.

Usage

knitthis(output_dir = "documents", ...)

Arguments

output_dir

The output directory, as used in rmarkdown::render

...

Additional arguments to pass to rmarkdown::render

Examples

## Not run: 
# This command will knit the Rmd file that is currently open into the directory R.
knitthis("R")

# Assuming the open file is data_prep.Rmd, this would be equivalent to running:
rmarkdown::render(".../data_prep.Rmd", output_dir = ".../R")


## End(Not run)


overdodactyl/mRclwhip documentation built on June 30, 2023, 6:24 a.m.