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
    <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.
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
Language: en-US
X-schema.org-keywords: stats19, road-safety, transport, car-crashes,
        ropensci, data
NeedsCompilation: no
Packaged: 2026-03-18 14:07:19 UTC; robin
Author: Robin Lovelace [aut, cre] (ORCID:
    <https://orcid.org/0000-0001-5679-6536>),
  Malcolm Morgan [aut] (ORCID: <https://orcid.org/0000-0002-9488-9183>),
  Layik Hama [aut] (ORCID: <https://orcid.org/0000-0003-1912-4890>),
  Mark Padgham [aut] (ORCID: <https://orcid.org/0000-0003-2172-5265>),
  David Ranzolin [rev],
  Adam Sparks [rev, ctb] (ORCID: <https://orcid.org/0000-0002-0061-8359>),
  Ivo Wengraf [ctb],
  RAC Foundation [fnd],
  Blaise Kelly [aut] (ORCID: <https://orcid.org/0000-0003-2623-1598>)
Maintainer: Robin Lovelace <rob00x@gmail.com>
Repository: CRAN
Date/Publication: 2026-03-18 15:20:02 UTC
Built: R 4.5.3; ; 2026-04-19 03:16:57 UTC; windows
