Skip to contents

crashapi 0.1.2

  • Update year range to cover 2022 data.

crashapi 0.1.1.9

crashapi 0.1.1

CrashAPI now has data from 2010 to 2020. get_fars_year() is also updated to support multiple years and to include a state parameter which makes it much easier to use.

  • refactor: update 2019 -> 2020 max year
  • feat: add geometry and state parameter support to get_fars_year()
  • refactor: set default crs to NULL and switch to use sfext::df_to_sf
  • refactor: switch to use httr2 package + read_crashapi() for data access (except for zip)
  • test: add tests and set up code coverage tests

crashapi 0.1.0.12

crashapi 0.1.0.11

  • feat: add get_fars() function that uses an api parameter to call different APIs
  • feat: import helper functions from {tigris} package to improve renamed lookup_fips() function
  • feat: Add get_fars_crash_vehicles to support downloading crash data by vehicle make, model, and/or body type
  • fix: get_fars_year was not using the correct query URL if download = TRUE
  • refactor: relocate helper functions to utils.R
  • refactor: rename make_query() helper function to read_api()
  • refactor: update validate_year() helper function to work with {checkmate} package
  • refactor: update default values for year, start_year, end_year and other parameters
  • docs: Update README and pkgdown site

crashapi 0.1.0.10

  • feat: get_fars_zip added to provide alternate (non-API) method for downloading zipped CSV or SAS data files
  • fix: get_fars_crash_details updated to return data frame w/o list columns
  • feat: get_fars_crash_details updated to optionally return vehicle or crash events data frames

crashapi 0.1.0.9

  • docs: Revise README and update pkgdown site
  • fix: Add missing imports to DESCRIPTION
  • fix: Update county_to_fips() to support partial county names, e.g. “Adams” instead of “Adams County” and avoiding matching multiple counties (closes #1)
  • feat: Update get_fars_crash_details() to return sf objects using geometry parameter
  • refactor: Set up API calls w/ unexported utility function (make_query)

crashapi 0.1.0

  • Added functions for accessing FARS APIs including Get Crash List Information, Get Crash Details, Get Crashes By Location, Get Summary Counts, and Get FARS Data By Year (documented in get_fars())
  • Added functions for accessing FARS APIs including Get Variables and Get Variable Attributes (documented in get_fars_vars())
  • Added fars_terms data with terms and definitions from National Highway Traffic Safety Administration (NHTSA) website
  • Added a NEWS.md file to track changes to the package.
  • Set up a pkgdown website