I upgraded to RStudio 1.0.44, and it seems that knitr :: opts_knit $ set (root.dir = path), where the path is my directory, which does not work as before. It gives 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 appear in the next command. Notice that I have not knitted rmd yet. I just run commands from it. Setting the working directory directly to the command line via setwd () returns the correct path to getwd (), but downloading the file with the relative path (. / ...) will again return the message above. Exactly the same rmd works fine with RStudio 0.99.896. What am I missing?
sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
>Running under: Windows 7 x64 (build 7601) Service Pack 1
other attached packages:
[1] scales_0.4.0 ggplot2_2.1.0 xtable_1.8-2 data.table_1.9.6
[5] dplyr_0.4.3 knitr_1.15 pander_0.6.0
source
share