Melissa Van Bussel

Who am I?

  • Melissa Van Bussel, Analyst at Statistics Canada (official statistical agency of Canada)
  • I also make YouTube videos (@ggnot2) about R programming

The DIY-era of the pandemic

We decided to build an outdoor couch…

  • We bought the wood and paid the $85 delivery fee
  • We quickly realized that the saw we had wasn’t exactly going to “cut it”

We needed to use a better saw.

We purchased more wood.

There was just one problem left…

  • We still didn’t have a car that could fit the wood
  • Didn’t want to pay the $85 delivery fee again

We borrowed a truck from a friend.

Once we had the right tools, resources, and help that we needed, we successfully finished the couch!

Once we had the right tools, resources, and help that we needed, we successfully finished the couch!

Once we had the right tools, resources, and help that we needed, we successfully finished the couch!
converted our documentation to Quarto!

  • Our journey to Quarto
  • Challenges faced
  • Tips and tricks

It’s not just about documentation :)

Some context…

My team publishes statistics related to education in Canada.

“We converted our documentation to Quarto”

“We converted our documentation to Quarto”

Our “User Guide” before Quarto

It was slow to scroll.

Our “User Guide” before Quarto

Only one person could edit it at a time.

Our “User Guide” before Quarto

Version control was limited to “Track Changes”.

In walks Quarto

  • We discovered Quarto, which would address the challenges
  • We were total Quarto beginners

Tip #1: Use the right tools


Placeholder text

A really good
starting point:



library(rmarkdown)
pandoc_convert("input.docx", to = "md")



Turns your plain text into .md format

Still just a starting point, though

  • Other formatting changes were needed
  • Custom keyboard shortcuts are your friend

Still just a starting point, though

  • Other formatting changes were needed
  • Custom keyboard shortcuts are your friend

Code Snippets

  • A great way to automate code insertion for things you type frequently (think :::)
  • To modify in RStudio:
Tools > Global Options > Code > Edit Snippets...

Code Snippets

  • Useful for Quarto features that take a long time to type, e.g.,
:::: {.columns}

::: {.column width="50%"}
Left column
:::

::: {.column width="50%"}
Right column
:::

::::

Code Snippets

  • Tom Mock has put together a GitHub Gist that contains snippets that are helpful for working with Quarto
  • Can use for either RStudio or VS Code

Tricky syntax

  • Markdown tables in particular have syntax that’s hard to type out manually

Generative AI

  • Great use case: HTML + CSS

Automating

  • Use Git for proper version control
  • Use GitHub Actions or GitLab CI/CD Pipelines to automate the publishing of your content
  • Every time you git commit, everything updates automatically

Tip #2: Ask for help
when you need it


Order of operations

Order of operations

Order of operations

Order of operations

Answer: make the .gif conditional

::: {.content-visible when-format="html"}

![](my_animated_image.gif)

:::

Order of operations

The Q+A feature on the quarto-cli repo

The Q+A feature on the quarto-cli repo

When all else fails…

  • There might be features that aren’t yet implemented
  • There may be a clever workaround
  • If not, see if there’s already a feature request (upvote if so, create one if not)

Tip #3: Make sure that
you have all of the
resources (support)
that you need.

Show, not tell

IT support

  • Quarto is still fairly new, so it may not be available at your workplace
  • If this is the case, see if you can use a different IDE, or consider using GitLab Pipelines or GitHub Actions with a rocker image
my-job:
  image: rocker/r-ver:4.3

Colleagues with Git/Markdown experience

Colleagues with Git/Markdown experience

The awesome quarto repo contains many pre-made templates, OR

You can create your own custom templates

Colleagues without Git + MD experience

project:
  type: book
  output-dir: public

book:
  title: "Title goes here"
  author: "Your names here"
  repo-url: https://wwww.your_url_here.com
  repo-actions: [issue, source]
  downloads: [pdf, docx]

Colleagues without Git + MD experience

End-users

Enable PDF and/or Word format downloads:

project:
  type: book
  output-dir: public

book:
  title: "Title goes here"
  author: "Your names here"
  repo-url: https://wwww.your_url_here.com
  repo-actions: [issue, source]
  downloads: [pdf, docx]

Once we had the right tools, resources, and help that we needed, we successfully finished the couch!
converted our documentation to Quarto!

Thank you!

@ggnot2

melissavanbussel.com

@melvanbussel

@melissavanbussel

github.com/melissavanbussel

Did you like these slides?


You can find the code for this presentation on my GitHub or you can use this template I made by running the following in the terminal:


quarto use template melissavanbussel/quarto-revealjs-abstract-green