Skip to content

stats19

Work with Open Road Traffic Casualty Data from Great Britain

v3.4.0 · Oct 9, 2025 · 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

711

Last 30 days

4985th

711

Last 90 days

711

Last year

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 (15 non-OK)
OK 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

*


            
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

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
OK 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

*


            

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 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 dplyr lubridate jsonlite stats19

Version History

new 3.4.0 Mar 9, 2026