quarto-dev / quarto-dev/quarto-cli

Multiple pdf format fail with generated figures

オープン
#8,367 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug latex
主要言語
JavaScript
スター
6k
フォーク
458
平均マージ
1日 9時間
マージ済み PR(30日)
41

説明

Bug description

When you have multiple pdf formats in a Quarto document that contains figures (generated by R for example), the process cleans up those figures after rendering the first PDF and the second PDF fails to render.

Steps to reproduce
---
title: "Test"
format: 
  pdf: default
  pdf+option: default
---

```{r}
cars |> 
  ggplot2::ggplot(ggplot2::aes(x = speed, y = dist)) +
  ggplot2::geom_line()
```
Expected behavior

The figures should be kept until all formats are rendered.

Actual behavior

The figures are deleted after the first PDF is rendered.

Your environment
  • IDE: RStudio Version 2023.12.0+369 (2023.12.0+369)
  • MacOS Sonoma 14.2.1
Quarto check output

Quarto 1.4.545
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.545
Path: /Applications/quarto/bin

[✓] Checking tools....................OK
TinyTeX: v2023.12
Chromium: 869685

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/admin/Library/TinyTeX/bin/universal-darwin
Version: 2023

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

[✓] Checking Python 3 installation....OK
Version: 3.11.4 (Conda)
Path: /opt/homebrew/Caskroom/miniconda/base/bin/python
Jupyter: 5.3.1
Kernels: python3

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

[✓] Checking R installation...........OK
Version: 4.3.2
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.45
rmarkdown: 2.25

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Use the minimal Quarto document in the reproduction, with two PDF formats and an R/ggplot2 figure, as the entry point. Trace rendering and cleanup across both PDF passes; done means both PDFs render successfully without the generated figure files being removed too early, with a regression check if the project provides one.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, r
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。