safe_map: Safe Mapper

Description Usage Arguments Value Examples

View source: R/content_api_funs.r

Description

a wrapper for map, that uses safely to bypass any errors and raises a warning

Usage

1
safe_map(.x, .f)

Arguments

.x

an item to map over

.f

a function to map which produces a dataframe / tibble

Value

a dataframe containing the results of mapping the function

Examples

1
safe_map(c("https://www.gov.uk/api/content/"), get_taxon_df)

mattmalcher/gov.uk.taxonomy documentation built on Jan. 25, 2020, 12:45 a.m.