forked from juba/rmdformats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.doc.Rd
44 lines (40 loc) · 1.37 KB
/
create.doc.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create.doc.R
\name{create.doc}
\alias{create.doc}
\title{Create a new directory with a clean RMarkdown file}
\usage{
create.doc(dirname = "new-doc", format = "html_clean", report = FALSE,
makefile = TRUE)
}
\arguments{
\item{dirname}{name of the directory to create}
\item{format}{R Markdown format to use}
\item{report}{indicates if the new document is living in the \code{report} directory
(for ProjectTemplate projects)}
\item{makefile}{indicates if a `Makefile` for HTML and PDF rendering should
be created in the document folder}
}
\value{
No value is returned.
}
\description{
This function creates a new subdirectory inside the current directory, which will
contain a ready-to-use RMarkdown file to be rendered in the given format.
}
\details{
For now on, the available formats are "html_clean", "html_docco".
If \code{report} is TRUE, then a small snippet of code is added at the
beginning of the Rmd file. This code allows to switch to the ProjectTemplate
project root before running \code{load.project} when using the included Makefile.
}
\examples{
\dontrun{
create.doc("MyDocument", format="html_clean")
}
}
\author{
Julien Barnier <[email protected]>
This function is heavily inspired and copied from the \link[ProjectTemplate]{create.project} function
of the \code{ProjectTemplate} package.
}