util_report_get_data_errors {nhlapi} | R Documentation |
nhl_get_data
Report errors encountered during nhl_get_data
util_report_get_data_errors(x, reporter = log_e, ...)
x |
|
reporter |
|
... |
further arguments passed to |
character()
, URLs for which the retrieval
resulted in an error, invisibly. Optional side-effects.
## Not run:
# Write errors to a temporary text file
tmpFile <- tempfile()
util_report_get_data_errors(
nhl_get_data(nhl_url_players(c("none", "8451101", "some"))),
reporter = writeLines,
con = tmpFile
)
## End(Not run)