-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.qmd
33 lines (21 loc) · 1.4 KB
/
index.qmd
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
# Preface {.unnumbered}
This is my first Quarto book. For now, I'm just using it for some experimentation. Eventually, I will probably want to add all of this to a GitHub repository. Right now, Olivia is in class and I'm content with just experimenting a little bit.
This is **not** my new R Notes book; although, I may move R Notes over to Quarto at some point. This is purely just a sandbox for playing with Quarto books.
## Useful websites:
- [Quarto book documentation](https://quarto.org/docs/books/)
## Rendering
You can render the files by clicking the Render button in RStudio. To render the HTML and PDF files at the same time, type `quarto render` into the terminal. You can also render Quarto files with a native R code chunk.
- The input argument: The input file or project directory to be rendered (defaults to rendering the project in the current working directory).
- The output_format argument: Target output format (defaults to "html"). The option "all" will render all formats defined within the file or project.
````
```{{r}}
#| Render with R
#| eval: false
quarto::quarto_render(output_format = "all")
```
````
## Publishing to GitHub pages
[This article is great](https://quarto.org/docs/publishing/github-pages.html).
- Make sure you are on the main branch.
- After rendering (see above), make sure to save and **commit** your changes to GitHub.
- Type `quarto publish gh-pages` in the terminal.