Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

redcap_connection

REDCap Connection


Description

Overview

A 'safe' wrapper for redcapAPI::redcapConnection(). Will return diagnostic error codes in case incorrect URL or token are provided instead of failing outright.

REDCap API Security

It is good practice to ensure that SSL certs are validated when utilizing the REDCap API. To ensure this happens, set the CURLOPT_SSL_VERIFYPEER' option to TRUE to avoid potential man in the middle attacks.

The redcapAPI package utilizes the httr package to perform operations using the REDCap API. Configuration options can be passed directly to httr via the config option in the redcapAPI::redcapConnection function. Here, we set 'ssl_verifypeer = 1L' to ensure cert checking is enabled.

Usage

redcap_connection(url, token)

Arguments

url

A string containing the https URL for your institution's REDCap API.

token

A string containing the API token for your REDCap project.

Value

A redcapAPI connection object if the URL and API token are correct ( See: redcapAPI::redcapConnection ). Else, return diagnostic error.


ReviewR

A Light-Weight, Portable Tool for Reviewing Individual Patient Records

v2.3.6
BSD_3_clause + file LICENSE
Authors
Laura Wiley [aut] (<https://orcid.org/0000-0001-6681-9754>), Luke Rasmussen [aut] (<https://orcid.org/0000-0002-4497-8049>), David Mayer [cre, aut], The Wiley Lab [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.