Created
August 1, 2020 20:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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