Skip to content
Discussion options

You must be logged in to vote

Two things:

  • fig-format should work as this is an alias for dev. Though this requires latest knitr and possibly Quarto 1.4. So in the meantime using dev is fine (but this options is only working for knitr chunks in .qmd)
  • You need to use YAML syntax so use List syntax when multiple item.
---
title: Hello World
---

```{r}
#| fig-format:
#|   - png
#|   - pdf
plot(1 + 1)
```

This will indeed produce a png AND a pdf file, and include only the first I believe.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@olechnwin
Comment options

@mcanouil
Comment options

@olechnwin
Comment options

@cderv
Comment options

Answer selected by olechnwin
@olechnwin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment