# Examples that hit the live NYC Open Data API are guarded so CRAN checks
# do not fail when the network is unavailable or slow.
if (interactive() && curl::has_internet()) {
# Quick example (fetch 2 rows)
small_sample <- nyc_domestic_violence_annual_report(limit = 2)
small_sample
nyc_domestic_violence_annual_report(
limit = 2,
filters = list(category = "FJC_Client_Visits")
)
}
Run the code above in your browser using DataLab