I'm on windows 10 , RStudio 1.0.136 , R 3.3.1
I'm creating a Rmd file and want to set the location of the Rmd file as the working directory.
I looked at the related questions here and here - but couldn't find a good solution yet.
I'm on windows 10 , RStudio 1.0.136 , R 3.3.1
I'm creating a Rmd file and want to set the location of the Rmd file as the working directory.
I looked at the related questions here and here - but couldn't find a good solution yet.
This should work:
```{r setup, include=FALSE}
knitr::opts_knit$set(root.dir = getwd())
```