View source: R/connection-close.R
connection_close | R Documentation |
Close a connection
connection_close(con, host = "", type = "", leave_open = FALSE)
con |
Connection variable |
host |
Host name of the connection. Optional, defaults to empty |
type |
Type of connection. Optional, defaults to empty |
leave_open |
Should the connection be left open. Defaults to 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.