Package: stats19 Title: Work with Open Road Traffic Casualty Data from Great Britain Version: 4.0.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")) ) 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 . 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 Suggests: duckdb, DBI, ggplot2, knitr, rmarkdown, stringr, testthat (>= 2.1.0), tidyr, tidyselect, pkgdown, kableExtra, leaflet, geojsonsf, htmltools, tmap, spatstat.geom, osmdata, covr, readODS, gt, clock, waldo VignetteBuilder: knitr RoxygenNote: 7.3.3 Roxygen: list(markdown = TRUE) Language: en-US X-schema.org-keywords: stats19, road-safety, transport, car-crashes, ropensci, data 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-03-18 14:06:45 UTC RemoteUrl: https://github.com/ropensci/stats19 RemoteRef: master RemoteSha: a55e33f795b1f6fd8400691e5f1cb09b0b952207 NeedsCompilation: no Packaged: 2026-06-14 08:26:48 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: ) Maintainer: Robin Lovelace