Skip to content
Discussion options

You must be logged in to vote

I'll try to clarify a few things

Quarto projects don't seem to be completely self-contained when using quarto::render(execute_dir = ".") though and that's confusing.

execute_dir = "." in the R function is equivalent to calling quarto render <file> --execute-dir .. Quarto will normalize the path . from where the quarto render command is called. So in here,

quarto::quarto_render(
  input = "manuscript/index.qmd",
  execute_dir = "."
)

it will be from root of you RStudio project. If you call that from another folder it would be different. Using . is not the safest to insure correct path is used.

For knitr engine, --execute-dir will set the value for knit_root_dir argument in rmarkdown::ren…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@mcanouil
Comment options

@arnaudgallou
Comment options

@mcanouil
Comment options

@cderv
Comment options

Answer selected by arnaudgallou
@arnaudgallou
Comment options

@cderv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants