34  Publish Your Report to Quarto Pub

Author

Zihan Hei

Published

10.27.2025

Abstract

This guide guides researchers through the process of creating a Quarto Pub website using your Binghamton University Google account. Follow each step carefully to ensure your report is published correctly.

Keywords

quarto pub, personal website, publish

Open Project → Open .qmd → Run load-library chunk → Run All Chunks Above → code. If anything looks wrong, use Ref’s Quick Checklist.

ImportantImportant: Quarto Pub shuts down in December 2026

Posit has announced that the Quarto Pub service ends in December 2026 (Quarto Pub publishing guide). If you are reading this on or after January 1, 2027, do not follow the steps in this chapter. Publish to GitHub Pages instead, following Quarto’s guide: https://quarto.org/docs/publishing/github-pages.html. The report you write does not change; only the last command does (quarto publish gh-pages instead of quarto publish quarto-pub), and the link you submit will be a github.io address.

ImportantRequired: what to submit on Brightspace

You need to submit your RD Report and your Final Report on Brightspace. Each submission has three parts:

  1. your .qmd file (Lastname_RDreport.qmd or Lastname_finalreport.qmd)
  2. your dataset in .xlsx format
  3. a link to your published Quarto report

This chapter shows you how to publish your report and get that link. You can see examples of published Quarto reports in Reproducible Reports.

ImportantImportant: Close the project, reopen it, and run everything before you submit

Code that worked while you were editing can still fail from a clean start, because something you ran earlier by hand (a package, an object, a data file in the wrong place) was propping it up. Before you submit your RD Report or Final Report, and before you publish it, prove that it runs on its own:

  1. Close the project: File > Close Project. If RStudio asks about the workspace, choose Don’t Save.
  2. Open the project fresh: double-click Lastname_FRI.Rproj. The environment tab should be empty.
  3. Run all of the code from the top. For a .qmd report, click Render; it starts a fresh R session and runs every chunk from the first line to the last, the same job Source does for an .R script.
  4. Check the result. The report should open with every plot, table, and number in place, and the console should show no errors. If it stops, fix the first error, then start again from step 1.

Only when a fresh run works from top to bottom is the report ready to submit and publish. If it works on your computer this way, it will work on your peer mentor’s or Dr. Shane’s.

34.1 Before You Begin

Make sure you have:

  • Your Lastname_FRI RStudio Project, with a report (.qmd) that renders without errors.

  • An active Quarto account linked to your school Google email.

    • Sign in to Quarto pub with your school email account using google sign in.
  • Your _quarto.yml and _publish.yml files are in your Lastname_FRI project folder on your computer

34.2 Prepare the _publish.yml File

In your _publish.yml file, add the following code (if not already present):

- source: project
  quarto-pub:
    - id:                                  # leave the id blank
      url:                                 # leave the url blank

⚠️ Do not manually add or paste any token here.

Tokens are automatically handled by Quarto during the publishing process.


34.3 Publish from the “Terminal”

CautionCaution: The screenshots are from an older setup

The pictures in this chapter were taken in Posit Cloud (RStudio in a web browser), so the Terminal in them shows /cloud/project. In RStudio on your computer, the steps and the questions in the Terminal are the same. Only the folder name on the Terminal line is different.

Following the step by step process, and you can publish your report to your own Quarto website!!

34.3.1 Step 1: Under Terminal

  • Click the tab for Terminal (between the Console and Background Jobs tabs) in RStudio. The line where you type should end with the name of your project folder, Lastname_FRI. If it does not, you did not open your project: see Find the Ref.

  • Type the following command and press Enter:

quarto publish quarto-pub
  • Next, When prompted with “Publish update to:”, click Add a new destination…

(see the Figure 34.1 below):

Figure 34.1: Quarto publish command and destination selection

34.3.2 Step 2: Authorize Your Account

  • Under “Publish with account:” section choose “Use another account…” (see the Figure 34.2 below)

  • Next, the system will ask to authorize your account in order to publish to Quarto Pub. In the Authorize (Y/n) section, type “Y” for Yes. (see the Figure 34.3 below)

  • Your web browser will then open the Quarto Pub authorization page. (If it does not open by itself, the Terminal shows a link: copy it into your browser.) You will see your Quarto account. Click “ALLOW” to allow publishing. (see the Figure 34.4 and Figure 34.5 below)

Figure 34.2: Choose “Use another account”
Figure 34.3: Authorize publishing in terminal
Figure 34.4: Click authorization link
Figure 34.5: Allow publishing access

34.3.3 Step 3: Name Your Website

  • When prompted for “Site name:”, scroll down to “Use another name…” (see the Figure 34.6 below)

  • Next, in “Publish with name” section, enter a short name for your report. (see the Figure 34.7)

Figure 34.6: Select “Use another name”
Figure 34.7: Create a name for your report

34.3.4 Step 4: Confirm and View Your Website

Once publishing completes successfully, you’ll see a message in the terminal with a link to your new Quarto Pub website. Click the link to open your published report!


34.4 Troubleshooting and Tips

  • If you receive an authorization error, sign out of all Google accounts, then log in again with your school email.

  • To update your site later, simply run:

    quarto publish quarto-pub 
  • Your _publish.yml should never contain tokens or IDs you did not generate yourself.

  • To delete a published site, go to your Quarto Pub dashboard and remove it manually.

Save → Render → Back up to ELN → Quit, Don’t Save workspace. Details: Ref’s Quick Checklist.