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 REDCapTidieR::read_redcap(redcap_uri = .uri, token = .token,     forms = forms):  The token is an empty string, which is not allowed.
#>  API token: ``
# }