-1
install.packages("DBI")
install.packages("RSQLite")
install.packages("sqldf")

mydb<-dbConnect(RSQLite::SQLite(),"my-db.sqlite")

Error in dbConnect(RSQLite::SQLite(), "PSTAT10-db.sqlite") : could not find function "dbConnect"

I would be very grateful!!!

Carl
  • 4,232
  • 2
  • 12
  • 24
Vincent
  • 1
  • 1
  • 1
    Possible duplicate of [Error: could not find function ... in R](https://stackoverflow.com/questions/7027288/error-could-not-find-function-in-r) – patL Feb 26 '19 at 08:25

1 Answers1

0

Use DBI::dbConnect or library(DBI) at the beginning of your code to load the function.

Clemsang
  • 5,053
  • 3
  • 23
  • 41