Is there a way to change default library in Knitr? I get this error:
Loading required package: knitr
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'knitr'
Error: could not find function "knit"
Execution halted
I use RStudio and read topic on this problem on rstudio’s support but i still have the same problem.
Ok, I know what should I do. Create file Renviron.site in R/etc and include line R_LIBS=C:/Program Files/RStudio/R/library. Works well.