Making and Publishing HTML Documents
Prework
- Read about Quarto Pub
- Go to https://quartopub.com/ and sign up for an account
Quarto Pub
Quarto Pub is a service that allows you to publish your Quarto documents to the web. It is a great way to share your work with others. It is also a convenient way of sharing your own work with yourself. Instead of having to open up your local files, you can just go to the web and access your paper or presentation.
Publishing to Quarto Pub
Let’s publish the document we have been working on to Quarto Pub:
- Make sure that you are signed into your Quarto Pub account at https://quartopub.com/. (Create an account if you have not already done so.)
- Open the project in RStudio that you created in the last module.
- Open the Quarto document where you have the two data visualizations (
dataviz.qmd
). - Render the document by clicking on the “Render” button in the RStudio toolbar. (This will produce the necessary HTML files that you need to publish to Quarto Pub.)
- Go to the Terminal tab in RStudio.
- Type
quarto publish quarto-pub
and press enter.
Here is a short video that walks you through the process: