Close a connection
connection_close(con, host = "", type = "", leave_open = FALSE)Returns a NULL object. If using the RStudio IDE, it will attempt to close the connection identified by the `host` and `type` arguments, or the con object
library(DBI)
con <- connection_open(RSQLite::SQLite(), path = ":dbname:")
connection_close(con)
con
#> <connConnection>