Troubleshooting
Common problems and fixes.
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
How to Ask for Help
When you encounter a problem, providing good diagnostic information is the fastest way to get it solved. Follow these steps:
- Describe what you expected to happen and what actually happened.
- Include the exact error message. Copy and paste it.
- Provide your system information. Run the following command in the RStudio Console and include the output:
r sessionInfo()
- Provide your tool versions. Run these commands in the RStudio Terminal and include the output:
bash quarto --version git --version
- Include a screenshot. A picture of your full RStudio window (including the error message in the console) is often very helpful.
Finding RStudio Log Files
In rare cases, you may need to check the RStudio log files for more detailed error information.
- Windows: The logs are located in
%localappdata%\\RStudio
. You can copy and paste that path into your File Explorer address bar. - macOS: The logs are in
~/.local/share/rstudio
. You can find this in the Finder by using the “Go” → “Go to Folder…” menu item.