opts_knit$set(root.dir = path) does not work after RStudio upgrade 1.0.44
问题 I upgraded to RStudio 1.0.44 and it seems knitr::opts_knit$set(root.dir = path) where path is my directory is not working as before. It throws a message: The working directory was changed to /... inside a notebook chunk. The working directory will be reset when the chunk is finished running. Use the knitr root.dir option in the setup chunk to change the the working directory for notebook chunks. This message will now appear in every following command. Note that I am not knitting the rmd yet.