-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
96 lines (67 loc) · 3.23 KB
/
README.Rmd
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README/README-fig-",
out.width = "50%",
fig.align = "center"
)
```
# cosmodown <img src="man/figures/cosmodown-large.png" align="right" width="120" />
<!-- badges: start -->
<!-- badges: end -->
This package provides a template for writing theses and dissertations at
Brigham Young University using **rmarkdown** and **bookdown**. Much of this was
inspired by the [**thesisdown**](https://github.com/ismayc/thesisdown) package
by Chester Ismay, and this particular implementation was taken directly from [**jahawkdown**](https://github.com/wjakethompson/jayhawkdown) by Jake Thompson.
The original LaTeX template and class document were written by Greg Macfarlane,
and modified for use with pandoc and R markdown. If you are looking for the
BYU LaTeX class only, [it is available here.](https://github.com/byu-transpolab/byuthesis)
## Installation
You can install cosmodown from github with:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("gregmacfarlane/cosmodown")
```
You also need a working LaTeX program; I recommend the
[TinyTeX distribution](https://yihui.org/tinytex/), but
complete LaTeX distributions are available below:
* Macintosh: [MacTeX](https://tug.org/mactex/mactex-download.html)
* Linux: [TeXLive](https://www.tug.org/texlive/acquire-netinstall.html)
* Windows: [TeXLive](https://www.tug.org/texlive/windows.html)
## Example Usage
The recommended way to use this template is with RStudio; however, it is
possible to use this template with a different IDE.
### RStudio Usage
1. Open Rstudio
2. Start a new Rstudio project in a new directory
```{r select-rmd, echo = FALSE}
knitr::include_graphics("README/newproject.png")
```
3. On the list of templates, select "BYU Thesis using **cosmodown**".
```{r select-template, echo = FALSE}
knitr::include_graphics("README/select_template.png")
```
4. On the new project page, name your project and give it a location. This will
be the name of the folder as well as the `.Rproj` Rstudio project file.
```{r new-project, echo = FALSE}
knitr::include_graphics("README/newproject.png")
```
5. Select "OK", and the new project should open automatically. To render the
document to a website and to a PDF, push the "Build Book" button under the
"Build" tab. This button also has a drop-down that will allow you to build either
the site or the PDF.
```{r knit-template, echo = FALSE}
knitr::include_graphics("README/knit.png")
```
6. The site and the rendered PDF will be stored in the `docs/` folder.
### Troubleshooting
If the example PDF fails to render, try these steps:
* If you are not using RStudio, attempt to render in RStudio.
* Make sure your LaTeX environment was successfully setup.
* Make sure your R packages are up to date, specifically **rmarkdown**, **bookdown**, **cosmodown**, and **knitr**.
If errors persist after trying all of these steps, post your process along with the resulting error to a [new issue](https://github.com/gregmacfarlane/cosmodown/issues) on Github, and I will try to help.