## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(tidyREDCap)

## ----getData, eval=FALSE------------------------------------------------------
# rcon <- redcapAPI::redcapConnection(
#   url = 'https://redcap.miami.edu/api/',
#   token = keyring::key_get("nacho_anxiety_key")
# )
# 
# redcap <- redcapAPI::exportRecords(rcon)
# 
# saveRDS(redcap, file = "redcap.rds")

