fhir_recent_http_error: Return most recent http error from 'fhir_search()'

View source: R/download_resources.R

fhir_recent_http_errorR Documentation

Return most recent http error from fhir_search()

Description

Whenever a call to fhir_search() produces any http error, the error information is saved internally until the next http error occurs (or the R session ends). The error information can be accessed with fhir_recent_http_error. If you want to log that information outside of your R session, set the argument log_errors of fhir_search() .

Usage

fhir_recent_http_error()

Value

A string containing the error message

See Also

fhir_search()

Examples

## Not run: 
fhir_search("https://server.fire.ly/Medicatio", max_bundles = 1)
cat(fhir_recent_http_error())

## End(Not run)


TPeschel/fhiR documentation built on April 14, 2024, 7:31 a.m.