Creating a New Quarto Document in RStudio

To create a new Quarto document:

  1. Be sure that you are in the correct project for the exercise or assignment. If you need help creating a new project here are some tips.
  2. In RStudio, go to the menu bar and select File > New File > Quarto Document.
  3. Enter a title for your document and select the output format (e.g., HTML, PDF, Word).
  4. Click Create. A new Quarto file (.qmd) will open.
  5. Save the file to your project directory
  6. Use the toolbar or the Render button to build your document.
  7. If using HTML, set self-contained: true under the format in the YAML like this:
format: 
  html:
    self-contained: true