I'm trying to make a connection to PostgreSQL database in R.
I'm writing this
drv <- dbDriver("PostgreSQL")
But in result i have an error:
Error: Couldn't find driver PostgreSQL. Looked in:
* global namespace
* in package called PostgreSQL
* in package called RPostgreSQL
What am I doing wrong?
drv <- DBI::dbDriver("PostgreSQL")
gives me the same error but loading RPostgreSQL
library("RPostgreSQL")
before making the connection solves it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With