Looks like you may need to install and load the DBI package, which supplies the generic dbConnect() (for which odbc provides a method)!
dbConnect()
So, replace:
library(odbc)
with:
library(odbc) library(DBI)