This is a new one, and I have not found any mentions of this on other stackoverflow sites.
So I am programming in R and using the RPostgreSQL package to access a Postgres 9.1.5 database. So I created the connection to the database as I would normally do it, and now I am getting a strange error.
db.conn = function(){
## This function creates a connection to the database. Subsequent
## functions that access the db will go through this function.
drv = dbDriver("PostgreSQL")
con = dbConnect(drv, user = "user", password = "password", dbname = "dbname", host = "localhost", port = 5432)
return(con)
}
so when I create an object:
testdb = db.conn()
The object seems to get created, but when I type
testdb
Error in function (classes, fdef, mtable) :
unable to find an inherited method for function "show", for signature "PostgreSQLConnection"
I have never seen this error before. Any suggestions on where it might be coming from? Any help would be appreciated.