-2

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"

zx8754
  • 52,746
  • 12
  • 114
  • 209
Pip
  • 41
  • 1
  • 4

1 Answers1

2

Please note that R is case sensitive. You have written in lowercase thats the reason you are getting error.

You can write like:

library("RODBC")

or

library(RODBC)
Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214