Setting working directory for interactive computations (ie., not render) in a Quarto document

Viewed 68

Is there a way to reproduce the functionality of knitr::opts_knit$set(root.dir = '/path/to/dir') from Rmarkdown (which does work in Quarto as well, when ran from a chunk) but straight from the YAML block? Something like:

---
knitr:
  options:
    root.dir: "/path/to/dir"
---

(I've tried it, and also substituting options with opts_knit, and it doesn't work either way.

Thank you!

0 Answers
Related