Skip to content

Figures produced by R chunks in projects do not freeze if the filename has spaces #13806

@camwest5

Description

@camwest5

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

When I use the global freeze: auto setting on a website project, figures produced in R code cells (via ggplot2) are not being stored in _freeze if the .qmd filename has spaces. They are going to _site (on an initial render), but because they're not in _freeze, when I re-render without making changes there are no longer any images to pull into _site and the figures break.

To be clear, I'm running

quarto render
quarto render

This isn't happening with Python chunks or non-project renders.

My current workaround is obviously to remove spaces from filenames. But ideally this behaviour would be consistent with non-project renders and Python chunks.

Steps to reproduce

In _quarto.yml

project:
  type: website
  render: 
    - "a test.qmd"

website:
  navbar:
    left:
      - text: "a test"
        href: "a test.qmd"

execute:
  freeze: auto

In a test.qmd

```{r}
library(ggplot2)

ggplot(msleep,
       aes(x = conservation)) +
  geom_bar()
```

Actual behavior

Figures produced by R code in .qmd files within a project do not get frozen even when freeze: auto (or freeze: true)

Expected behavior

Figures produced in R chunks within project qmds should be stored in the _freeze directory when appropriate, even if the filename has spaces.

Your environment

  • Bash terminal in VSCode
  • Ubuntu 22.04.5 LTS (via WSL 2)

Quarto check output

Quarto 1.8.26
[✓] Checking environment information...
      Quarto cache location: /home/uqcwest5/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.3.1: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.8.26
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/bin
      Version: 2021

[✓] Checking Chrome Headless....................OK
      Chrome:  (not detected)

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.12
      Path: /usr/bin/python3
      Jupyter: 5.9.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.5.2
      Path: /usr/lib/R
      LibPaths:
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.50
      rmarkdown: 2.30

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfile-systemsissues with NFS, google drive, onedrive, etcfreezeissues with the `freeze` feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions