Create a JDS article draft using the specified LaTeX class file. This function is a simplified version of `rmarkdown::draft()` for creating a JDS article draft only.
Usage
draft(file, cls = c("jdsart", "jds"))Arguments
- file
A character string for the file name of the draft. Different with
rmarkdown::draft(), the suffix".Rmd"will not be added if it is not specified.- cls
The LaTeX class name. The available choices are
jdsartfor the latest class developed by vtex, orjdsfor the deprecated class.
Examples
if (interactive() && requireNamespace("rmarkdown", quietly = TRUE)) {
## draft from a sample R markdown file
jds.rmd::draft("jds-sample.Rmd")
## produce pdf with the tex source kept for submission
rmarkdown::render("jds-sample.Rmd")
}