Package: stats19 Title: Work with Open Road Traffic Casualty Data from Great Britain Version: 4.2.0 Authors@R: c( person("Robin", "Lovelace", email = "rob00x@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-5679-6536")), person("Malcolm", "Morgan", email = "m.morgan1@leeds.ac.uk", role = c("aut"), comment = c(ORCID = "0000-0002-9488-9183")), person("Layik", "Hama", email = "layik.hama@gmail.com", role = c("aut"), comment = c(ORCID = "0000-0003-1912-4890")), person("Mark", "Padgham", role=c("aut"), comment = c(ORCID = "0000-0003-2172-5265")), person("David", "Ranzolin", role=c("rev")), person("Adam", "Sparks", role = c("rev", "ctb"), comment = c(ORCID = "0000-0002-0061-8359")), person("Ivo", "Wengraf", role = c("ctb")), person(given = "RAC Foundation", role = c("fnd")), person("Blaise", "Kelly", email = "blaise@kello.co.uk", role = c("aut"), comment = c(ORCID = "0000-0003-2623-1598")), person("Roger", "Beecham", email = "r.j.beecham@leeds.ac.uk", role = c("aut"), comment = c(ORCID = "0000-0001-8563-7251")) ) 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 2025. See the official data series at . The package is described in a paper in the Journal of Open Source Software (Lovelace et al. 2019) . See Gilardi et al. (2022) , Vidal-Tortosa et al. (2021) , Tait et al. (2023) , and León et al. (2025) for examples of how the data can be used for methodological and empirical research. Depends: R (>= 4.1.0) License: GPL-3 URL: https://github.com/ropensci/stats19, https://docs.ropensci.org/stats19/ BugReports: https://github.com/ropensci/stats19/issues Encoding: UTF-8 LazyData: true Imports: sf, curl (>= 3.2), readr, tibble, dplyr, lubridate, jsonlite, glue, rlang Suggests: duckdb, DBI, dbplyr, ggplot2, knitr, rmarkdown, stringr, testthat (>= 2.1.0), withr, tidyr, tidyselect, pkgdown, kableExtra, leaflet, geojsonsf, htmltools, tmap, spatstat.geom, covr, readODS, gt, clock, waldo VignetteBuilder: knitr Roxygen: list(markdown = TRUE) Language: en-US X-schema.org-keywords: stats19, road-safety, transport, car-crashes, ropensci, data Config/roxygen2/version: 8.1.0 Config/pak/sysreqs: libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev libssl-dev libproj-dev libsqlite3-dev libudunits2-dev libx11-dev Repository: https://ropensci.r-universe.dev Date/Publication: 2026-10-11 19:00:52 UTC RemoteUrl: https://github.com/ropensci/stats19 RemoteRef: master RemoteSha: 7f0f64d545a02422a02684c39b4455f61238e7f3 NeedsCompilation: no Packaged: 2026-10-11 20:31:14 UTC; root Author: Robin Lovelace [aut, cre] (ORCID: ), Malcolm Morgan [aut] (ORCID: ), Layik Hama [aut] (ORCID: ), Mark Padgham [aut] (ORCID: ), David Ranzolin [rev], Adam Sparks [rev, ctb] (ORCID: ), Ivo Wengraf [ctb], RAC Foundation [fnd], Blaise Kelly [aut] (ORCID: ), Roger Beecham [aut] (ORCID: ) Maintainer: Robin Lovelace