-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuse-notestar.Rd
More file actions
58 lines (49 loc) · 1.99 KB
/
Copy pathuse-notestar.Rd
File metadata and controls
58 lines (49 loc) · 1.99 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/use-notestar.R
\name{use_notestar}
\alias{use_notestar}
\alias{use_notestar_makefile}
\alias{use_notestar_references}
\title{Create a brand new notebook with default settings}
\usage{
use_notestar(
dir_project = ".",
dir_notebook = "notebook",
dir_md = "notebook/book",
notebook_helper = "knitr-helpers.R",
cleanrmd_theme = "water",
notebook_filename = "notebook",
open = interactive()
)
use_notestar_makefile(dir_project = ".")
use_notestar_references(dir_project = ".")
}
\arguments{
\item{dir_project}{file-path to the base/root folder of the project. Defaults to
\code{"."} which is the current working directory.}
\item{dir_notebook}{Name of the directory containing the Rmd files. It should
be a relative path from the project root. Defaults to \code{"notebook"}}
\item{dir_md}{Name of the directory to contain md files (knitted Rmd files).
It should be a relative path from the project root. Defaults to
\code{"notebook/book"}.}
\item{notebook_helper}{Filename for an R script to run before knitting each
Rmd file and rendering the notebook with bookdown. The file must be in
\code{dir_md}. Defaults to \code{"knitr-helpers.R"} so the default location is
\verb{"notebook/knitr_helpers.R}.}
\item{cleanrmd_theme}{Theme to use for \code{cleanrmd::html_document_clean()}. Defaults to
\code{"water"}.}
\item{notebook_filename}{Name to use for the final html file. Defaults to
\code{"notebook"} which produces \code{"notebook.html"}.}
\item{open}{whether to open \verb{_targets.R}, \code{notebook/index.Rmd}, and
\code{R/functions.R} when they are created. Defaults to \code{interactive()} (whether
the code is being called interactively).}
}
\value{
\code{use_notestar_makefile()} creates a Makefile that will build or clean a
targets-based workflow.
\code{use_notestar_references()} adds the files \code{"refs.bib"} and \code{"apa.csl"} to
\code{dir_notebook}.
}
\description{
Create a brand new notebook with default settings
}