r-lib / pkgdown

Generate static html documentation for an R package
https://pkgdown.r-lib.org/
Other
721 stars 336 forks source link

Quarto rmd articles #2723

Open olivroy opened 4 months ago

olivroy commented 4 months ago

@hadley Here is the example of what I mean in #2722

Basically, I am looking to find a way to reuse stuff and use Quarto vignettes.

The technique I am aiming to use is with knitr::read_chunk(). It works for Rmd, but not for Quarto.

Do you have an idea on what is going wrong here?

The article renders when I use the render button inside RStudio, but not with pkgdown.

On CI, it seems like the Rmd article is failing too.

hadley commented 4 months ago

Going off my vague memory, it's probably because quarto vignettes are built in a temporary directory. I think you'll need to add the child to external resources?