Skip to content

Manuscript figures not found (wrong path)Β #12360

@andjar

Description

@andjar

Bug description

After rendering a manuscript project with notebooks, the notebook figure files are not displayed in the output html file. There seems to be an issue with the paths

Steps to reproduce

Create an new Quarto manuscript project (quarto create project manuscript).

Create a folder notebooks, and within it a new file notebook.qmd containing:

---
title: "Notebook"
---

## A test

```{r}
x <- 1:4
y <- 1:4
plot(x,y)
```

Render the project (quarto render)

Actual behavior

>quarto render
[1/2] notebooks\notebook.qmd


processing file: notebook.qmd
1/3
2/3 [unnamed-chunk-1]
3/3
output file: notebook.knit.md

[2/2] index.qmd

Output created: _manuscript\index.html

But when opening the notebook html file, the figure is not found. The image file path in the html is _manuscript/notebooks/notebook_files/figure-html/unnamed-chunk-1-1.png whereas the figure file itself is located in the folder \.quarto\_freeze\notebooks\notebook\figure-html. To get the image to show in the html file, I have to manually copy the folder into _manuscript\notebooks and change the name

Expected behavior

The output figure files should automatically be moved to the folder _manuscript/notebooks/notebook_files

Your environment

  • IDE: Rstudio 2024.12.1, build 563
  • OS: Windows 10

Quarto check output

quarto check
Quarto 1.6.42
[>] Checking environment information...
      Quarto cache location: C:\Users\anderhja\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.6.42
      Path: C:\Users\anderhja\AppData\Local\Programs\Quarto\bin
      CodePage: 1252

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

[>] Checking LaTeX....................OK
      Tex:  (not detected)

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

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
      Version: 4.4.3
      Path: C:/Users/anderhja/AppData/Local/Programs/R/R-4.4.3
      LibPaths:
        - C:/Users/anderhja/AppData/Local/R/win-library/4.4
        - C:/Users/anderhja/AppData/Local/Programs/R/R-4.4.3/library
      knitr: 1.50
      rmarkdown: 2.29

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions