Books
Workshop: Quarto for R & RStudio
posit::conf 2023
Anatomy of a Project
books, like any project, are defined by _quarto.yml
.
project:
type: book
book:
title: "mybook"
author: "Jane Doe"
date: "8/18/2021"
chapters:
- index.qmd
- intro.qmd
- summary.qmd
- references.qmd
bibliography: references.bib
format:
html:
theme: cosmo
pdf:
documentclass: scrreport
epub:
cover-image: cover.png
Our Turn
Let’s create our first book!
- Click into
empty-book
- Run
quarto create-project --type book
- Run
quarto render
- Run
quarto publish
Your Turn
Let’s turn the Stat 20 notes into a book.
- Click into
book
.
- Run
quarto create-project --type book
- Modify
_quarto.yml
to be sure all notes are added as chapters.
- Publish it!
quarto publish
- Add an icon to your website sidebar
- Create a crossreference between chapters (add a reference to a figure from chapter 2 in chapter 4.)