Is there an equivalent to execute-dir
in a single Quarto document (not a project)?
#9667
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
There is no equivalent because So outside of project, it does not make sense. If you are using knitr engine document, you could leverage knitr options (independant of quarto) to change the execution directory. Though most of the time, it opens the door to side effect, and the solution is rather to handle path computation differently in chunks. Anyhow, changing execution directory for Quarto is a project level feature. Currently no way to set it for a single document, unless using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I would like to render a single Quarto document (not a Quarto Project) with the parent directory as working directory, ideally by simply clicking the "render" button in RStudio or invoking some other shortcut. Is there an equivalent to the
execute-dir
option of Quarto Projects for single Quarto documents?I know I can specify the working directory with
quarto::quarto_render()
but this involves typing out both the document name and file path for each document.Beta Was this translation helpful? Give feedback.
All reactions