Hello OHDSI members,
I am a recent member and studying CDM codes with OHDSI book, but 9.2.1 code does not execute in R.
conn <- connect(dbms = "postgresql",
server = "localhost/postgres",
user = "joe",
password = "secret",
schema = "cdm")
I installed and import DatabaseConnector
library.
However, R cannot execute connect function.
The error message is below:
Error in connect(dbms = "postgresql", server = "localhost/postgres", user = "joe", :
unused argument (schema = "cdm")
I also referred to documents about connect
function and its description does not show the schema argument now.
Description
connect creates a connection to a database server .There are four ways to call this function:
- connect(dbms, user, password, server, port, extraSettings, oracleDriver, pathToDriver)
- connect(connectionDetails)
- connect(dbms, connectionString, pathToDriver))
- connect(dbms, connectionString, user, password, pathToDriver)
If you have the new code for solving the error, please let me know it.
Thank you in advance.