check_forms_exist function

Check that all requested instruments are in REDCap project metadata

Check that all requested instruments are in REDCap project metadata

Provide an error message when any instrument names are passed to read_redcap() that do not exist in the project metadata.

check_forms_exist(db_metadata, forms, call = caller_env())

Arguments

  • db_metadata: The metadata file read by REDCapR::redcap_metadata_read()
  • forms: The character vector of instrument names passed to read_redcap()
  • call: the calling environment to use in the error message

Returns

An error message listing the requested instruments that don't exist