Description Usage Arguments Value Examples
This is a convenience function to refresh connections to database files.
1 2 | reset_shapeDB(func_conName, func_existingCon = NULL,
func_type = "connect")
|
func_conName |
The filepath to which an SQLite connection is sought. |
func_existingCon |
If any value other than NULL, then any existing connection is first dropped prior to attempting to form a connection to the func_conName filepath. |
func_type |
This should be a character string of either connect, in which case a connection is made/refreshed to the filepath in func_conName", or any other value will cause disconnection |
An SQLite connection object to an SQLite database.
1 2 3 4 | # This function can be called to set, resset SQL connections
fileName_testCon <- paste(tempdir(),"/testCon.sqlite",sep="")
testCon <- reset_shapeDB(fileName_testCon)
reset_shapeDB(testCon, func_type = "disconnect")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.