testConnection | R Documentation |
Test your conncection to local or remote servers. The function will return a
logical of length one invisibly with TRUE
for success and FALSE
if any of the connection attempts fail.
testConnection(x, logger = loggerConnection, ...) ## S4 method for signature 'Credentials' testConnection(x, logger = loggerConnection, ...) ## S4 method for signature 'CredentialsList' testConnection(x, logger = loggerConnection, ...) loggerConnection(x, status) loggerSuppress(x, status)
x |
(Credentials | CredentialsList) a credentials object. |
logger, status |
(function) a logger function. Has two arguments, first is
|
... |
arguments passed to sendQuery |
workingConnection <- Credentials(drv = SQLite, dbname = ":memory:") testConnection(workingConnection) ## To suppress logging: testConnection(workingConnection, loggerSuppress)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.