stats19 (development version)
- Fixed issue where
year = 1979now correctly returns data for 1979 only, rather than all years from 1979 onwards (#282)
stats19 3.4.0 2025-10
CRAN release: 2025-10-09
- Major updates to deal with new file names and column names in updated files hosted by the Department for Transport (#268)
- Refactored download logic to no longer use .zip files, which are no longer served by the DfT. The package now downloads .csv files directly.
- Switched from
download.file()tocurl::curl_download()for more robust downloads (#258). - Improved documentation around setting a permanent download directory using the
STATS19_DOWNLOAD_DIRECTORYenvironment variable (#211). - Promoted essential packages for data download and formatting (
dplyr,lubridate,jsonlite) fromSuggeststoImports. - Replaced
reshape2withtidyrfor data manipulation (#276). - Added support for downloading the last 5 years of data using
year = "5 years"(#261). - The
get_stats19_adjustments()function now returns a message explaining that adjustments are included in the main casualty dataset, as the separate adjustments file is no longer provided by the DfT (#266). - Added a new vignette that reproduces the DfT’s pedestrian factsheet (#240, #277).
stats19 3.3.1 2025-01
CRAN release: 2025-01-15
- Downloads now work when you are on networks with firewalls (#255)
stats19 3.3.0 2025-01
CRAN release: 2025-01-12
- Support for 2023 data (#251)
- Another round of updates to the schema files thanks to updates from the DfT
stats19 3.2.0 2024-10
CRAN release: 2024-10-24
- Updates so package functions fail gracefully when input data is not as expected, e.g. due to URL changes (#252)
stats19 3.0.3 2024-02
CRAN release: 2024-02-08
- Update documentation to account for the shift in table names, replacing
accidentswithcollisionsandcasualtywithcasualties(#232)
stats19 3.0.1 2023-10
- Minor update to increase default
timeoutinget_stats19()to 10 minutes (#226)
stats19 3.0.0 2023-10
CRAN release: 2023-10-12
- Major update so the package works with the new csv files (up to 2022)
- Deprecation of
read_accidentsin favour ofread_collisionsand using consistentcollisioninstead ofaccidents. - Other minor improvements
stats19 2.0.0 2020-10
CRAN release: 2021-10-29
- Major changes to the datasets provided by the DfT have led to major changes to the package. See (#212) for details.
- To reduce code complexity the package no longer supports reading in multiple years
- This puts the onus on the user of the package to understand the input data, rather than relying on clever coding to join everything together. Note: you can easily join different years, e.g. with the command
purrr::map_dfr().
stats19 1.5.0 2021-10
- Support new https download links (#208)
- Package tests now pass when wifi is turned off
- URLs have been fixed
stats19 1.4.3 2021-07-21
CRAN release: 2021-07-21
- Use 1st edition of
readron Windows to prevent errors on reading data (#205)
stats19 1.4.2 2021-07
- Fix CRAN checks associated with access to online resources (#204)
-
Fix issues associated with
get_ULEZ()andget_MOT()functions
stats19 1.4.1
CRAN release: 2021-03-28
- New function
get_ULEZ()to get data on vehicles from a number plate (thanks to Ivo Wengraf) - Added a test to prevent rare failures in
get_stats19()whendata_dirpoints to the working directory
stats19 1.4.0
CRAN release: 2021-03-15
- Add
get_stats19_adjustments()function - Use GH Actions for CI (#177)
- Fixed a problem with
get_stats19()and multiple years that could be linked with the same data file (#168) - Fix issues with vignettes for CRAN (#190)
stats19 1.2.0
CRAN release: 2020-03-03
- Tests now pass on the development version of R (4.0.0)
- The package now has a hex sticker! See https://github.com/ropensci/stats19/issues/132 for discussion
- The output of formatted crash datasets gains a new column,
datetimethat is a properly formatted date-time (POSIXct) object in the correct timezone (Europe/London) (#146) - Enables the download of multiple years as per https://github.com/ropensci/stats19/issues/99, thanks to Layik Hama
- Users can now set the default data download directory with STATS19_DOWNLOAD_DIRECTORY=/path/to/data in your .Renviron file: https://github.com/ropensci/stats19/issues/141
-
get_stats19()gains a new argumentoutput_format()that enables results to be returned as ansfobject or apppobject for use the thespatstatpackage thanks to work by Andrea Gilardi https://github.com/ropensci/stats19/pull/136
stats19 1.1.0
CRAN release: 2019-10-15
- Now enables the download of 2018 data
- Various bug fixes, see https://github.com/ropensci/stats19/issues
- Update website link: https://docs.ropensci.org/stats19/
- New work-in-progress vignette on vehicles data: https://docs.ropensci.org/stats19/articles/stats19-vehicles.html
stats19 1.0.0
CRAN release: 2019-07-28
- Major change to
dl_stats19(): it is now much easier to download STATS19 data. By defaultask = FALSEinget_stats19()anddl_stats19().
stats19 0.2.0
CRAN release: 2019-02-15
-
get_stats19()gains anaskargument (TRUEby default, set asFALSEto make road crash data access even more automated!) - The
datecolumn now is of the correct class after formattingPOSIXct. See #86 - Added a
NEWS.mdfile to track changes to the package.