Skip to content

stats19

4.0.0

Work with Open Road Traffic Casualty Data from Great Britain

0packages depend
12.7Kdownloads / year
69.1%test coverage
13/13checks pass

Overview

About
Maintained by Robin LovelaceFirst published 2019-01-1821 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.6 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
69.1%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,718 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
38%
Documented parameters
97%
Return-value docs
18%
References docs
0%

Downloads

12.7K
CRAN downloads in the past year
Rank #3,672 · ~35/day · ~1.1K/mo
Daily download trend is not available in this view yet.
67730 days
2.9K90 days
12.7K1 year
Compare downloads with other packages →
Also on158 r2u31 autocran

Repository

Repository
73Stars
20Forks
14Open issues
1Open PRs
17Releases
1,038Commits
17Contributors
rr-packagerstats
License GPL-3.0 · 1,038 commits · Last activity 2026-04-15 · +1.4% stars, 30d

Stars over time

2025-01-09 · 622026-07-14 · 73

Repository practices

Upstream repositoryBeta

9 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/ropensci/stats19 on 2026-07-19.

Continuous integration (2)
GitHub ActionsAzure Pipelines
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Show all practices
Research and citation (2)
codemeta.jsonJOSS paper
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
Vignettes 3,464 (58%)R 1,366 (23%)Rd 993 (17%)Other 104 (2%)
Code characteristics
Cyclomatic complexity
2.0 median / 21 max

Test coverage

Line coverage

1%

Expression

0.4%

Tests / Examples

0.7% / 20% ex

Functions

30 17 exported

Complexity

4.2 avg / 21 max

Call network

30 nodes / 37 edges

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Datasets

Bundled datasets · 9
NameClassRows × ColsAlso ships in
accidents_sampletbl_df/tbl/data.frame3 × 37
accidents_sample_rawtbl_df/tbl/data.frame3 × 37
casualties_sampletbl_df/tbl/data.frame3 × 21
casualties_sample_rawtbl_df/tbl/data.frame3 × 16
schema_originaldata.frame1,060 × 4
stats19_schemadata.frame1,820 × 6
stats19_variablesgrouped_df/tbl_df/tbl/data.frame111 × 4
vehicles_sampletbl_df/tbl/data.frame3 × 34
vehicles_sample_rawtbl_df/tbl/data.frame3 × 23

People & History

People (9)
Maintainer (1)
Author, Maintainer
Authors (5)
Author, Maintainer
Author
Author · added in 3.4.0
Contributors (2)
Reviewer, Contributor
Contributor · added in 1.2.0
Funders (1)
Funder · added in 1.1.0
Reviewers (2)
Reviewer, Contributor
Package Timeline

21 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 4.0.0Latest
    2026-03-18 · current release · diff ↗
  • 3.4.0
    2025-10-09 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 3.3.1
    2025-01-15 · diff ↗
  • 3.3.0
    2025-01-13 · diff ↗
  • 3.2.0
    2024-10-25 · diff ↗
  • 3.1.0
    2024-08-01 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 3.0.3
    2024-02-09 · diff ↗
  • 3.0.2
    2023-11-05 · diff ↗
  • 3.0.0
    2023-10-12 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.0.1
    2022-11-17 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2.0.0
    2021-10-30 · diff ↗
Show 18 earlier events
  • unarchivedReturned to CRAN
    2021-10-30
  • archivedRemoved from CRAN
    2021-10-20
    check problems were not corrected in time
  • 1.4.3
    2021-07-21 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.4.1
    2021-03-28 · diff ↗
  • 1.4.0
    2021-03-15 · diff ↗
  • unarchivedReturned to CRAN
    2021-03-15
  • archivedRemoved from CRAN
    2021-03-14
    check problems were not corrected in time
  • 1.3.0
    2020-10-01 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.2.0
    2020-03-03 · diff ↗
  • 1.1.0
    2019-10-15 · diff ↗
  • 1.0.0
    2019-07-28 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.1
    2019-04-03 · diff ↗
  • 0.2.0
    2019-02-15 · diff ↗
  • 0.1.1
    2019-01-18
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-01-18
Total releases
21 / 7 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
351 KB / 12 files
Download size
3.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →