Troubleshooting
This page collects quick fixes and diagnostic commands for the tools used in this course.
PDF render fails (“No TeX installation detected”, missing LaTeX package)
Fix (fastest):
quarto install tinytex
Verify from R:
if (requireNamespace("tinytex", quietly = TRUE)) tinytex::is_tinytex()
Quarto tries to render the whole repo
Whitelist only the intended files in site/_quarto.yml
:
project:
type: website
output-dir: _site
render:
- index.qmd
- pages/**/*.qmd
“Files didn’t appear” after running package commands
Confirm you are inside your course Project:
getwd()
Refresh the Files pane in RStudio.
Check the expected folder manually.
Re-run the command and review any error messages.
RStudio doesn’t show the Git tab
Enable Git for the Project: Tools → Project Options → Git/SVN (or create the Project from Version Control).
Verify Git is installed and on your PATH:
git --version
Git push fails (password prompts, auth errors)
Use HTTPS + Personal Access Token (PAT) or SSH.
PAT (recommended) Create a PAT and paste it when Git asks for a password. Install Git Credential Manager to cache it.
SSH (alternative) Add your public key in GitHub → Settings → SSH and GPG keys. Docs: https://docs.github.com/authentication/connecting-to-github-with-ssh
Website didn’t update on GitHub Pages
Using GitHub Actions (recommended)
- Check Actions → Quarto Pages: it should render, upload the artifact, and deploy.
- Repo Settings → Pages: set Source = GitHub Actions.
Using branch deployment (
/docs
)- Render locally to
docs/
and commit. - Repo Settings → Pages: set Source = main /docs.
- Render locally to
Quick diagnostic block
Paste into your Console or Terminal when something breaks:
# R session info
sessionInfo()
# Package + environment checks
library(mccoursepack)
mccourse_self_test()
# Quarto + Git + LaTeX checks
system("quarto --version")
system("git --version")
if (requireNamespace("tinytex", quietly = TRUE)) tinytex::is_tinytex()
When asking for help, include the output above, along with:
- Your operating system
- R and RStudio versions
- The exact error message