1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/rmarkdown.R 3\name{use_rmarkdown_template} 4\alias{use_rmarkdown_template} 5\title{Add an RMarkdown Template} 6\usage{ 7use_rmarkdown_template( 8 template_name = "Template Name", 9 template_dir = NULL, 10 template_description = "A description of the template", 11 template_create_dir = FALSE 12) 13} 14\arguments{ 15\item{template_name}{The name as printed in the template menu.} 16 17\item{template_dir}{Name of the directory the template will live in within 18\code{inst/rmarkdown/templates}. If none is provided by the user, it will be 19created from \code{template_name}.} 20 21\item{template_description}{Sets the value of \code{description} in 22\code{template.yml}.} 23 24\item{template_create_dir}{Sets the value of \code{create_dir} in \code{template.yml}.} 25} 26\description{ 27Adds files and directories necessary to add a custom rmarkdown template to 28RStudio. It creates: 29\itemize{ 30\item \code{inst/rmarkdown/templates/{{template_dir}}}. Main directory. 31\item \code{skeleton/skeleton.Rmd}. Your template Rmd file. 32\item \code{template.yml} with basic information filled in. 33} 34} 35\examples{ 36\dontrun{ 37use_rmarkdown_template() 38} 39} 40