Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R: Incompatibility with DBI::dbConnect #295

Open
rplati opened this issue Jan 11, 2024 · 0 comments
Open

R: Incompatibility with DBI::dbConnect #295

rplati opened this issue Jan 11, 2024 · 0 comments

Comments

@rplati
Copy link

rplati commented Jan 11, 2024

When inspecting an R-kernel, the extension works until I establish a connection to a database with DBI::dbConnect. After that, no newly declared variables will appear in the Variable Inspector. Using JupyterLab 4.0.10, R 4.3.2 and Variable Inspector v3.1.0 on Red Hat Enterprise Linux 9.3, but I’ve noticed the same issue with older versions as well.

# works fine at first
a <- 1

con <- DBI::dbConnect(odbc::odbc(),
                      .connection_string="Driver={ODBC Driver 18 for SQL Server};
                                     Server=<server\\instance>;
                                     Database=<database>;
                                     Integrated_Security=True;
                                     Trusted_Connection=Yes;
                                     TrustServerCertificate=Yes")

# the new variable will not appear after DBI::dbConnect() call
b <- 2

# the issue persists even after DBI::dbDisconnect()
DBI::dbDisconnect(con)
c <- 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant