Replies: 2 comments
-
You can try settting |
Beta Was this translation helpful? Give feedback.
-
Can you give an example of your current setup so that we know for sure what you are trying ?
For Are you in this situation: rstudio/rstudio#11361 (comment) ?
If you are looking for the document level option, then this is at knitr level with Package option (https://yihui.org/knitr/options/#package-options) using However, beware playing with changing the execution dir. This could lead to undesired side effect in a project or other process. Usually, executing code content inside the path where the document is located is enough, and when needed to access resources elsewhere, playing with path construction is better. Anyhow, this should help |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear community,
I am following this post here rstudio/rstudio#11361 to honor working directory for interactive qmd document. However, seems like
execute-dir
is completely unresponsive. When document is renderedgetwd()
shows the directory in which the files is. However, interactivelygetwd()
shows the project root directory (it does not change with changingexecute-dir
to file or project).Is it possible that the
execute-dir
is unresponsive because I am working with qmd document within .rproject and not quarto project? If yes, is there a workaround?Regards,
Amel
Beta Was this translation helpful? Give feedback.
All reactions