draft: Creat A Draft of JDS Article

Description Usage Arguments Value Examples

View source: R/draft.R

Description

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

1
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 jdsart for the latest class developed by vtex, or jds for the deprecated class.

Value

The file name of the new document (invisibly).

Examples

1
2
3
4
5
6
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")
}

jds.rmd documentation built on Sept. 16, 2021, 1:07 a.m.