connectAndCheck | R Documentation |
A function that given an API_KEY and a url will create a redcapConnection
object and verify that it is working with a version call.
If the API key is invalid it will return NULL.
If the URL is invalid or there are multiple redirects it will call stop
.
connectAndCheck(key, url, ...)
key |
The API key used to connect. |
url |
The url of the REDCap server. |
... |
Additional arguments passed to redcapConnection |
redcapConnection established or NULL if key is invalid.
redcapConnection()
## Not run:
connectAndCheck("<AN API KEY HERE>", "<REDCAP URL HERE>")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.