Skip to content

Instantly share code, notes, and snippets.

@agberg
Last active December 2, 2017 20:36
Show Gist options
  • Save agberg/42ff7ef865b43a560ca0c34788e07d14 to your computer and use it in GitHub Desktop.
Save agberg/42ff7ef865b43a560ca0c34788e07d14 to your computer and use it in GitHub Desktop.
# If this were a working example then the function would take inputs, probably as (...) this was just hacked together as a connection to a particular datababase.
disable_connection_pane <- function(){
saved_option = getOption("connectionObserver")
options(connectionObserver = NULL)
con <- DBI::dbConnect(odbc::odbc(),
dsn = "dsn")
options("connectionObserver" = saved_option)
con
}
con <- disable_connection_pane()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment