I am using R Studio where I have installed RODBC successfully as it works fine when I run a .r script. However, when I use the very same code in an .Rmd file I get an error saying
Error in library("rodbc") : there is no package called 'rodbc' Calls: ... withCallingHandlers -> withVisible -> eval -> eval -> library"