Skip to content

stats19

Work with Open Road Traffic Casualty Data from Great Britain

v4.0.0 · Mar 18, 2026 · GPL-3

Description

Work with and download road traffic casualty data from Great Britain. Enables access to the UK's official road safety statistics, 'STATS19'. Enables users to specify a download directory for the data, which can be set permanently by adding `STATS19_DOWNLOAD_DIRECTORY=/path/to/a/dir` to your `.Renviron` file, which can be opened with `usethis::edit_r_environ()`. The data is provided as a series of `.csv` files. This package downloads, reads-in and formats the data, making it suitable for analysis. See the stats19 vignette for details. Data available from 1979 to 2024. See the official data series at <https://www.data.gov.uk/dataset/cb7ae6f0-4be6-4935-9277-47e5ce24a11f/road-accidents-safety-data>. The package is described in a paper in the Journal of Open Source Software (Lovelace et al. 2019) <doi:10.21105/joss.01181>. See Gilardi et al. (2022) <doi:10.1111/rssa.12823>, Vidal-Tortosa et al. (2021) <doi:10.1016/j.jth.2021.101291>, Tait et al. (2023) <doi:10.1016/j.aap.2022.106895>, and León et al. (2025) <doi:10.18637/jss.v114.i09> for examples of how the data can be used for methodological and empirical research.

Downloads

1.1K

Last 30 days

3627th

2.5K

Last 90 days

11.6K

Last year

Trend: +57.4% (30d vs prior 30d)

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (4 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.7Mb
  sub-directories of 1Mb or more:
    doc    3.6Mb
    help   1.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.7Mb
  sub-directories of 1Mb or more:
    doc    3.6Mb
    help   1.5Mb
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘osmdata’
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.7Mb
  sub-directories of 1Mb or more:
    doc    3.6Mb
    help   1.5Mb

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.8Mb
  sub-directories of 1Mb or more:
    doc    3.5Mb
    help   1.6Mb
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘osmdata’
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.8Mb
  sub-directories of 1Mb or more:
    doc    3.5Mb
    help   1.6Mb

Dependency Network

Dependencies Reverse dependencies sf curl readr tibble dplyr lubridate jsonlite glue stats19

Version History

updated 4.0.0 ← 3.4.0 diff Mar 18, 2026
new 3.4.0 Mar 10, 2026
updated 3.4.0 ← 3.3.1 diff Oct 8, 2025
updated 3.3.1 ← 3.3.0 diff Jan 14, 2025
updated 3.3.0 ← 3.2.0 diff Jan 12, 2025
updated 3.2.0 ← 3.1.0 diff Oct 24, 2024
updated 3.1.0 ← 3.0.3 diff Jul 31, 2024
updated 3.0.3 ← 3.0.2 diff Feb 8, 2024
updated 3.0.2 ← 3.0.0 diff Nov 4, 2023
updated 3.0.0 ← 2.0.1 diff Oct 11, 2023
updated 2.0.1 ← 2.0.0 diff Nov 16, 2022
updated 2.0.0 ← 1.4.3 diff Oct 29, 2021
updated 1.4.3 ← 1.4.1 diff Jul 20, 2021
updated 1.4.1 ← 1.4.0 diff Mar 27, 2021
updated 1.4.0 ← 1.3.0 diff Mar 14, 2021
updated 1.3.0 ← 1.2.0 diff Sep 30, 2020
updated 1.2.0 ← 1.1.0 diff Mar 2, 2020
updated 1.1.0 ← 1.0.0 diff Oct 14, 2019
updated 1.0.0 ← 0.2.1 diff Jul 27, 2019
updated 0.2.1 ← 0.2.0 diff Apr 2, 2019