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!

  1. Click into empty-book
  2. Run quarto create-project --type book
  3. Run quarto render
  4. Run quarto publish

Your Turn

Let’s turn the Stat 20 notes into a book.

  1. Click into book.
  2. Run quarto create-project --type book
  3. Modify _quarto.yml to be sure all notes are added as chapters.
  4. Publish it! quarto publish
  5. Add an icon to your website sidebar
  6. Create a crossreference between chapters (add a reference to a figure from chapter 2 in chapter 4.)
10:00