Learn R Programming

redcapAPI (version 2.11.0)

connectAndCheck: Connect to REDCap and verify connection

Description

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.

Usage

connectAndCheck(key, url, ...)

Value

redcapConnection established or NULL if key is invalid.

Arguments

key

The API key used to connect.

url

The url of the REDCap server.

...

Additional arguments passed to redcapConnection

See Also

redcapConnection()

Examples

Run this code
if (FALSE) {
connectAndCheck("", "")
}

Run the code above in your browser using DataLab