It turns out, when I am working on say a reveal.js slide deck and I need a lot of instant feedback, quarto preview renders pretty slowly on my machine.

To speed up the process, and also allow me to tweak slides and blog articles from any machine, I started using GitHub Codespaces.

To set it up correctly, I settled on this devcontainer.json for now:


    "name": "R + Quarto Codespace",
    "image": "",
    "features": {
        "": {
            "packages": "blogdown",
            "installSystemRequirements" : true
    // fix current X11 error
    "postCreateCommand": "sudo apt-get update -y && sudo apt-get install -y libxt6",
    // run every time the container starts
    "postStartCommand": "quarto check",

    "customizations": {
        "vscode": {
      "extensions": [

    // Uncomment to connect as root instead.
    // More info:
    // "remoteUser": "root"


The container is based on the Devcontainer Template and the R package installer Feature from the Rocker Project.

Learn more