disconnect | R Documentation |
Close the connection to the server.
disconnect(connection)
connection |
The connection to the database server. |
## Not run: connectionDetails <- createConnectionDetails( dbms = "postgresql", server = "localhost", user = "root", password = "blah" ) conn <- connect(connectionDetails) count <- querySql(conn, "SELECT COUNT(*) FROM person") disconnect(conn) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.