Publishing Your Research: Quarto Books & GitHub Pages
The graded work for this chapter is the White Paper (MC 501). Get the worksheet, the guides, and the rubric there.
You have collected data, cleaned it, visualized it, and tested a hypothesis. Now you assemble everything into your White Paper, published simultaneously as a PDF and a live website.
The White Paper is the graded deliverable. A Quarto Book is the format it takes: a collection of .qmd files that Quarto renders into a single, cohesive document. Two words, one artifact. When the syllabus says White Paper and this chapter says Quarto Book, they are describing the same thing from two angles: what you wrote, and how it is built.
Steps on this page
What You’re Building
One render (Step 10 of 14-publishing-your-paper.qmd) produces:
- A PDF: print-ready, submitted to Blackboard
- A website: hosted free on GitHub Pages, accessible to anyone with the link
This is real academic publishing. Graduate students, researchers, and data journalists use this exact workflow.
The structure is IMRaD
Your White Paper follows IMRaD: Introduction, Methods, Results, and Discussion, in that order, with a short abstract in front and references at the close. The structure is a contract with the reader, who knows where to look for the question, the procedure, the finding, and the meaning. Your syllabus rubric is organized by these same sections, so the file layout below maps one to one onto how the paper is graded.
Scaffolding the Project
You made your White Paper project in Chapter 9, with 09-coding-the-codebook.qmd: it ran v2v::new_portfolio() and made a folder (the example name is twitch-portfolio) inside your course workspace. Do not run new_portfolio() again; it refuses to overwrite a project that exists.
That made the White Paper skeleton, a journals/ directory for your weekly reading journal, a codebook/ directory, a data tree with data/raw/ already gitignored, and a _quarto.yml wired as a Quarto Book:
twitch-portfolio/
├── _quarto.yml ← Master configuration file
├── index.qmd ← Abstract (write this LAST)
├── 01-introduction.qmd ← Question, theory, research questions
├── 02-methods.qmd ← Data provenance, sampling, variables, reliability
├── 03-results.qmd ← R code + output (tables, charts, tests, effect sizes)
├── 04-discussion.qmd ← Interpretation, limitations, conclusion
├── 05-reflection.qmd ← What was hard, what was ambiguous, what you'd change
├── references.qmd ← Auto-generated bibliography
├── references.bib ← Your citations (from Zotero)
├── journals/ ← Weekly reading journal entries
├── codebook/ ← Draft and final codebooks
├── data/raw/ ← Source data (gitignored)
├── data/derived/ ← Cleaned, analysis-ready data
└── figures/ ← Exported plots
How the Files Map to Your Prior Work
| Template File | What to Write | Where It Comes From |
|---|---|---|
01-introduction.qmd |
Question, theoretical lens, research questions | Project Prospectus + Topic Selection & RQs |
02-methods.qmd |
Data provenance, sampling strategy, variable definitions, reliability, wrangling steps | Codebook & Qual Memo + Sampling Plan & Pilot |
03-results.qmd |
Distributions, group comparisons, test statistics, effect sizes | Data Wrangling + Describing Data + Inferencing Data |
04-discussion.qmd |
Answer your RQs, connect to theory, state the limits | Your own analysis |
05-reflection.qmd |
What proved harder than expected, and what a second attempt would change | Your own experience of the term |
index.qmd |
Abstract summarizing all four IMRaD sections | Write this LAST |
references.bib |
BibTeX citations for all sources | Export from Zotero |
Every section draws from an assignment you have already completed. This is assembly and revision, not new writing. Your Introduction comes from your Prospectus. Your Methods come from your Codebook and Sampling Plan. Your Results come from your three R assignments.
Setup: Getting the Project Running
Step 1: Keep Your Workspace Open
Keep your course workspace open in VS Code, the folder with README.md at its top. Your project folder sits inside it, so do not open the project folder by itself. Then run Steps 1 and 2 of 14-publishing-your-paper.qmd, which name your project folder for every later step.
Step 2: Install Required Packages
In an R session inside VS Code’s terminal, run:
install.packages(c("tidyverse", "knitr", "kableExtra", "scales"))Step 3: Place Your Data
Run Step 4 of 14-publishing-your-paper.qmd. It copies twitch_analysis.RDS, the file your Data Wrangling worksheet saved in the data folder at the top of your workspace, into the project’s data/derived/ folder. 03-results.qmd reads it with read_rds("data/derived/twitch_analysis.RDS").
Step 4: First Render
Install the PDF tool first: follow Step 3 of 14-publishing-your-paper.qmd. Then run Step 10 of that file, which renders every chapter into the website and the PDF. It worked if a docs folder appears inside your project with index.html and a PDF in it.
Writing Each Section
Introduction (01-introduction.qmd)
Structure:
- Opening hook (2 to 3 sentences): why should anyone care about your topic? Start with a concrete example or a surprising fact.
- Background (1 to 2 paragraphs): what do we already know? Cite your sources using
@citationkeysyntax (Quarto auto-generates the reference list). - Theory (1 paragraph): which communication theory frames your study, and how does it connect to your variables? The rubric asks for a lens that is doing work rather than decoration, so the theory has to set up something your study can actually deliver.
- Research Questions (list): state both RQs exactly as you wrote them in your Topic Selection & RQs assignment.
Aim for roughly 500 to 700 words. That is guidance for pacing, not a graded threshold; the rubric scores whether the question is clear and the lens is load-bearing.
Your Introduction is scored on framing: the question has to be situated in the theoretical literature rather than gestured at. That means a structured literature review drawing on 15 or more sources, organized by argument rather than listed one study per paragraph. Expect this section to run substantially longer than the undergraduate version.
Source: pull from your Project Prospectus and Topic Selection assignments. Revise for flow, because these were separate assignments, so connecting them into a single narrative takes some editing.
Methods (02-methods.qmd)
The rubric standard is repeatability: enough detail that another researcher could run your study again and get your dataset.
Structure:
- Data provenance (1 paragraph): what media content did you analyze, where did it come from, and over what time period?
- Sampling strategy (1 paragraph): how did you select your sample? What was the population, and what was the final sample size?
- Variables (1 to 2 paragraphs): define each variable, conceptually and operationally. This comes directly from your codebook.
- Reliability (1 paragraph): you are the only coder, so report the stability check from your pilot: how many pilot items you re-coded after a gap with your first codes hidden, the agreement figure that re-code produced, the threshold you applied before coding the full sample, and any codebook changes the pilot prompted. Name the single-coder limitation as such; a second coder is not part of this course.
- Wrangling (1 paragraph): the steps between raw file and analysis-ready data.
Aim for roughly 400 to 600 words. Methods carries the single largest block of points in the rubric, so specificity pays here more than anywhere else in the paper.
Methods carries three transparency markers, and each is checked explicitly:
- A data provenance statement: the source, the access method, and the collection window, stated so a reader can reconstruct the dataset.
- A coder reliability report: your intracoder stability figure, the re-code procedure that produced it, and the threshold you applied before coding the full sample. You are the only coder, so name the single-coder limitation as such.
- A pre-registration disclosure: the dated pre-registration file in your project repository, cited by path and commit, including anything you changed after committing it and why.
A Methods section missing any of the three is incomplete regardless of how well the rest reads.
Source: pull from your Codebook and Sampling Plan & Pilot assignments.
Results (03-results.qmd)
Report what you found, plainly and without interpretation. Interpretation belongs in the Discussion, and moving it there is worth points in both sections.
The scaffold’s 03-results.qmd holds guidance text and no code. You build it from code you have already written and had graded:
- Open with the setup chunk from Step 6 of
14-publishing-your-paper.qmd, which reads your data asanalysis. - Paste the chunks from your Describing Data and Inferencing Data assignments, one chunk per table, figure, or test
- Add your reporting paragraphs between the code chunks
| Component | What to Include | Source Assignment |
|---|---|---|
| Frequency table | knitr::kable() formatted table with counts and percentages |
Describing Data |
| Bar chart | ggplot2 publication-ready chart, labeled and captioned |
Describing Data |
| Test result | The test statistic with its degrees of freedom, its p-value, and its effect size, in one reporting style such as APA, plus the journalist translation | Inferencing Data |
A test statistic and a p-value tell a reader whether you found something. Only the effect size tells them whether it matters. The rubric asks for it in Results and then asks, in Discussion, whether you characterized it accurately rather than inflating it. Reporting the p-value alone costs points twice.
Report the power statistics behind the design alongside your effect sizes: the power analysis you ran, the effect size it assumed, and the sample size it implied. If your realized sample differs from that target, say so here rather than in the limitations.
The R code in your graded assignments is the foundation. Copy your working code from the Describing Data and Inferencing Data assignments into 03-results.qmd; it already uses your variable names and your data file.
Discussion (04-discussion.qmd)
Structure:
- Answer your RQs (1 paragraph each): directly address each research question with evidence from your results.
- Connect to theory (1 paragraph): how do your findings relate to the theory you introduced?
- Limitations (at least 3): be specific. “Small sample size” is generic. “The sample capped each channel at 1,000 messages, so the busiest channels are under-represented relative to their real chat volume” is specific and useful.
- Conclusion (2 to 3 sentences): what is the takeaway, and what should future researchers investigate?
Aim for roughly 400 to 500 words.
Two additions. First, distinguish statistical significance from practical size explicitly: a significant result with a trivial effect is a finding about your sample size, not about the world, and saying so is worth points. Second, the limitations are graded as an explicit limitations analysis rather than a list: for each limitation, say what it threatens (internal validity, external validity, reliability) and how a future design would address it.
Reflection (05-reflection.qmd)
One specific paragraph naming what proved harder than expected, where a rule was ambiguous in practice, what the data could not answer, and what a second attempt would change.
The reflection is scored on precision, not on whether the study went well. A researcher who can say exactly where their study is weak is a researcher who understands it. “Everything went smoothly” is the lowest-scoring answer available.
Abstract (index.qmd)
Write this last. The abstract summarizes all four IMRaD sections in one paragraph of about 150 words:
- What you studied (1 sentence)
- How you studied it (1 sentence)
- What you found (2 to 3 sentences)
- Why it matters (1 sentence)
Graduate submissions carry an executive summary in addition to the abstract. The abstract is written for a researcher deciding whether to read the paper; the executive summary is written for a client or editor deciding what to do about it. Lead with the finding and its practical consequence, not with the method.
Reproducibility: No Pasted Numbers
The rubric awards points for a document that renders from source with no pasted numbers. That means every figure in your prose comes from inline R rather than from typing what you saw in the console:
The analysis dataset held `r format(nrow(analysis), big.mark = ",")` messages.If you retype a number and later re-run the analysis on a corrected dataset, the prose silently goes stale and disagrees with the table beside it. Inline code cannot go stale. It is also the single easiest place in the paper to lose points, because a grader can spot it by changing one row of your data and re-rendering.
Publishing to GitHub Pages
Publishing is one command from the course package, v2v::deploy_portfolio(). It checks your project, renders it, and pushes the rendered site to GitHub Pages.
Follow 14-publishing-your-paper.qmd, Steps 12 to 14, in class. Your project sits inside your workspace repository, which is already on GitHub, so you do not make a new repository and you do not run git init.
Step 1: Commit and Push
Commit and push with the Source Control panel. The guide Commit and Push with Git shows each click: MC 451 or MC 501.
Step 2: Run the Publish Command
In the R terminal, run this line, with your own project folder’s name in the quotes:
v2v::deploy_portfolio("twitch-portfolio")The command prints a short pre-flight list and stops if something is wrong:
- uncommitted changes detected: commit and push with the Source Control panel (Step 1), then run the command again.
- **_quarto.yml not found**: the name in the quotes does not match your project folder. Check its spelling in the Explorer, then run the command again.
When the checks pass it renders every page and asks Publish to GitHub Pages? [y/N]. Click in the R terminal, type y, and press Enter.
It worked if the last line reads Portfolio live on GitHub Pages.
Step 3: Wait and Test
GitHub Pages takes 1 to 2 minutes to build. Your site will be available at:
https://YOUR-USERNAME.github.io/YOUR-WORKSPACE-REPOSITORY/
Test it in an incognito or private window to make sure it works for someone who is not logged into your GitHub account. The rubric is explicit that a paper nobody can open scores nothing, and “it worked on my laptop” is the most common way to discover that too late.
If v2v::deploy_portfolio() stops with a message the two fixes above do not cover, or the address still shows a 404 page after five minutes, stop and tell me. Send the full text the command printed; do not try to publish by hand through the GitHub settings pages.
Submission Checklist
Try It Yourself
- Find your project in the Explorer: the folder you made with
09-coding-the-codebook.qmd, inside your workspace. - Run the full render (Step 10 of
14-publishing-your-paper.qmd) without making any changes. Does it produce output in thedocs/folder? - Read each
.qmdfile and identify which of your prior assignments provides the content for each section. - Paste one graded chunk from your Describing Data assignment into
03-results.qmd, after a chunk that readsdata/derived/twitch_analysis.RDS. Re-render and check the output. - Convert one retyped number in your prose into inline R and re-render to confirm it still reads correctly.
- Commit and push, run
v2v::deploy_portfolio()with your project folder’s name in the quotes, and verify the site loads in an incognito window.
This is it: the final deliverable. Everything in this workbook feeds into it. Chapters 1 and 2 prepared your data. Chapters 3 through 6 taught you the R skills. This chapter assembles the White Paper. When you are done, you will have a live research website and a professional PDF, real artifacts for a graduate school application or a job application.