Debian Codegraph @

man/available_templates.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/draft.R
3 \name{available_templates}
4 \alias{available_templates}
5 \title{List available R Markdown template in a package}
6 \usage{
7 available_templates(package = "rmarkdown", full_path = FALSE)
8 }
9 \arguments{
10 \item{package}{Package to list template from. Default to \strong{rmarkdown}}
11
12 \item{full_path}{Set to \code{TRUE} to get the full path to the available templates}
13 }
14 \value{
15 A character vector of templates name to use within \code{\link[=draft]{draft()}}. If
16 \code{full_path = TRUE}, it returns the full path to the templates.
17 }
18 \description{
19 List the available template by name that can be used with \code{\link[=draft]{draft()}} to create
20 a new document for R Markdown from a package.
21 }
22 \examples{
23 # List rmarkdown templates & create a draft
24 available_templates()
25
26 # List rticles templates
27 available_templates("rticles")
28 }