Skip to content

Instantly share code, notes, and snippets.

@mxblsdl
Created August 1, 2020 20:43
Show Gist options
  • Save mxblsdl/0f7858709dade0bb25a19636c3534e6e to your computer and use it in GitHub Desktop.
Save mxblsdl/0f7858709dade0bb25a19636c3534e6e to your computer and use it in GitHub Desktop.
Set the working directory of an R markdown to that of the project file
# For R projects
knitr::opts_knit$set(root.dir = rprojroot::find_rstudio_root_file())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment