GEMINI-Medicine / Rgemini

A custom R package that provides a variety of functions to perform data analyses with GEMINI data
https://gemini-medicine.github.io/Rgemini/
Other
3 stars 0 forks source link

[BUG]: Fix `check_input` to show error message for `odbc` DB connections #122

Closed loffleraSMH closed 2 months ago

loffleraSMH commented 2 months ago

The current check_input function returns the following error when checking dbcon inputs where the DB connection was established using odbc, for example:

dbcon<- dbConnect(odbc::odbc(),
                     Driver = "PostgreSQL Unicode",
                     Server = "server_name.net",
                     Port = "1234",
                     Database = "db_name",
                     UID = "username",
                     PWD = getPass::getPass("Database password: "))

Rgemini::readmission(dbcon)

Screen Shot 2024-05-23 at 9 51 57 AM

This can be resolved by removing !RPostgreSQL::isPostgresqlIdCurrent(arginput) on line 451 in utils.R, which is not really necessary.