29  Validate Quarto

This notebook validates Quarto after Spack, R, and language packages are installed.

Start with Quarto itself and a minimal render. Only then render project notebooks or extension-backed documents.

from rse_workbench.helpers import spython_exec, show_spython
show_spython(
    spython_exec(
        command=r'''
set -euo pipefail
source /work/env/activate.sh

which quarto
quarto --version
quarto check all
''',
        image=project_contract.singularity_image,
        options=[
            "--home", f"{project_contract.container_home}:/home/rse",
            "--bind", f"{project_contract.container_tmp}:/tmp",
        ],
        bind_project=project_contract.project_dir,
    ),
)

29.1 Extension policy

If project notebooks require executable filters like sorting-hat or ripper, place them under:

/work/env/bin

The activation script already prepends /work/env/bin to PATH.

Do not rely on arbitrary /work/dev/<filter> paths unless those files are created by a notebook and made executable.