crypto (version 1.1.3)

safely_read_json: Safely read json API

Description

This will attempt to safely retrieve data and return a elegant error message to the user if the data is unavailable.

Usage

safely_read_json(json_url)

Arguments

json_url

json API URL

Value

parsed dataset or a elegant error message

Examples

Run this code
# NOT RUN {
{
json_url <- 'https://s2.coinmarketcap.com/generated/search/quick_search.json'
result <- safely_read_json(json_url)
}

# }

Run the code above in your browser using DataCamp Workspace