M02 – In-depth Literate Programming
1 Project Setup and Organization
1.0.1 Prompt
Start a new project and Quarto file (.qmd) as you learned previously.
1.0.2 Response
For this module, I created a dedicated M02 folder within my course directory and initialized a new RStudio Project using that folder. This ensured that the working directory was automatically set whenever I opened the project, which helps avoid path-related issues and supports reproducibility.
Within the project, I created a Quarto document named “Qian, Angela – M02 – In-depth Literate Programming.qmd” and used the RStudio visual editor to manage both structure and formatting. Organizing the project this way reinforced best practices for literate programming by keeping code, narrative, and output tightly connected.
2 Preparing an HTML Report Using Quarto
2.0.1 Prompt
Prepare your report (HTML file) using Quarto and implement as many HTML features as possible.
2.0.2 Response
This report was rendered as a self-contained HTML document using Quarto’s built-in formatting options. Features such as a table of contents, section numbering, code folding, and an HTML theme were all controlled centrally through the YAML header.
The ability to define layout, navigation, and interactivity at the document level made the workflow more efficient than manually styling content after writing.
Quarto allows formatting decisions to be separated from content creation, which makes documents easier to maintain and update.
Key HTML features used in this report include: - Table of contents with depth control
- Section numbering
- Code folding and tools
- Embedded resources for portability
- A Bootstrap-based HTML theme
3 Reflection on the Instructor’s Lecture on Quarto
3.0.1 Prompt
Summarize the instructor’s lecture about Quarto that you found impressive. Do you see yourself using Quarto every day?
3.0.2 Response
One aspect of the instructor’s lecture that stood out to me was how Quarto reframes documents as single-source, multi-output artifacts. Rather than rewriting content for different formats, Quarto allows the same document to be rendered as HTML, PDF, or slides with minimal changes.
I can see myself using Quarto regularly for class notes, analytical reports, and presentations. The visual editor lowers the barrier for writing-heavy tasks, while the underlying Markdown structure still supports reproducibility and version control.
4 Summary of the Posit Video on Quarto’s Capabilities
4.0.1 Prompt
Summarize the Posit video on Quarto’s capabilities.
4.0.2 Response
The Posit video emphasized Quarto as a language-agnostic publishing system built on Pandoc. Unlike R Markdown, Quarto supports multiple engines such as R, Python, and Julia within a consistent document structure.
The video highlighted Quarto’s strengths in collaborative workflows, reproducible research, and professional publishing. Features such as cross-format rendering, integrated publishing tools, and advanced layout options position Quarto as a modern solution for technical communication.1
5 Styling a Previous Assignment in Quarto
5.0.1 Prompt
Choose a previous class assignment and style it using Quarto.
5.0.2 Response
Analysis of Selected Important Variables
AgeUponIntakeYears and IsNormal:
These two variables show a strong negative correlation, suggesting that animals classified as “normal” tend to be older at the time of intake. This may reduce their likelihood of adoption, as potential adopters often prefer younger animals.
IsNormal and OutcomeType_Adoption:
There is a weak positive correlation between these variables, indicating that animals categorized as “normal” have a slightly higher chance of adoption. This implies that a “normal” intake condition, while not strongly impactful, still slightly favors adoption outcomes.
IsPublicAssist and OutcomeType_Adoption:
A strong negative correlation exists between these two variables. This indicates that animals coming from public assist programs are less likely to be adopted. Possible reasons for this trend could include health conditions or behavioral issues associated with animals surrendered through such programs.
6 Publishing to Quarto Hub
6.0.1 Prompt
Publish this assignment document in an HTML file to Quarto Hub.
6.0.2 Response
This document was rendered as a self-contained HTML file and published using Quarto Hub.
Published URL:
Quarto Hubs Link
Publishing through Quarto Hub made it easy to share a polished, web-ready version of this assignment without additional deployment steps.
Footnotes
Source: Posit Quarto workshop and documentation↩︎