- source: project
quarto-pub:
- id: # leave the id blank
url: # leave the url blank34 Publish Your Report to Quarto Pub
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.
quarto pub, personal website, publish
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.
- Quarto Pub publishing guide (until December 2026)
- GitHub Pages publishing guide (from January 2027)
- Quarto Pub dashboard
You need to submit your RD Report and your Final Report on Brightspace. Each submission has three parts:
- your
.qmdfile (Lastname_RDreport.qmdorLastname_finalreport.qmd) - your dataset in
.xlsxformat - 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.
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:
- Close the project: File > Close Project. If RStudio asks about the workspace, choose Don’t Save.
- Open the project fresh: double-click
Lastname_FRI.Rproj. The environment tab should be empty. - Run all of the code from the top. For a
.qmdreport, 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.Rscript. - 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_FRIRStudio 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.ymland_publish.ymlfiles are in yourLastname_FRIproject folder on your computer- You can download these files from 306 Quant Track drive
34.2 Prepare the _publish.yml File
In your _publish.yml file, add the following code (if not already present):
⚠️ 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”
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):
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)
different examples:
e.g., zerosum
e.g., safety-report
e.g., avoider-report
Your short name will be in the URL link when you publish (e.g., https://zihanhei.quarto.pub/avoider-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-pubYour
_publish.ymlshould 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.