Skip to contents

Fetch REDCap form

Usage

fetch_form(form, .uri = get_redcap_uri(), .token = get_redcap_token())

Arguments

form

(chr, length 1) The REDCap form to fetch.

.uri

(chr, default: get_redcap_uri()) The REDCap URI.

.token

(chr, default: get_redcap_token()) The REDCap token.

Value

(tbl_df) The REDCap form.

Examples

# \donttest{
  fetch_form("followup_postoperatorio_14_30_60_giorno_po") |>
    str(0)
#> Error in REDCapR::redcap_project_info_read(.uri, .token, verbose = FALSE): Assertion on 'redcap_uri' failed: Must comply to pattern '^.{1,}$'.
# }