- Downloads now work when you are on networks with firewalls (#255)
- Support for 2023 data (#251)
- Another round of updates to the schema files thanks to updates from the DfT
- Updates so package functions fail gracefully when input data is not as expected, e.g. due to URL changes (#252)
- stats19 now relies on the
stats19_variables
object to format the different tables columns (#245) (credit @layik), fixing an issue in which ages were removed from thecasualties
table, fixing (#235) - If
year
is less than 2018 the package auto-downloads the full dataset (#239)
- Update documentation to account for the shift in table names, replacing
accidents
withcollisions
andcasualty
withcasualties
(#232)
- Fix issue with coordinates as characters (#228)
- Minor update to increase default
timeout
inget_stats19()
to 10 minutes (#226)
- Major update so the package works with the new csv files (up to 2022)
- Deprecation of
read_accidents
in favour ofread_collisions
and using consistentcollision
instead ofaccidents
. - Other minor improvements
- Changes spatstat.core related code (#217)
- Major changes to the datasets provided by the DfT have led to major changes to the package. See (#212) for details.
- To reduce code complexity the package no longer supports reading in multiple years
- This puts the onus on the user of the package to understand the input data, rather than relying on clever coding to join everything together. Note: you can easily join different years, e.g. with the command
purrr::map_dfr()
.
- Support new https download links (#208)
- Package tests now pass when wifi is turned off
- URLs have been fixed
- Use 1st edition of
readr
on Windows to prevent errors on reading data (#205)
- Fix CRAN checks associated with access to online resources (#204)
- Fix issues associated with
get_ULEZ()
andget_MOT()
functions
- New function
get_ULEZ()
to get data on vehicles from a number plate (thanks to Ivo Wengraf) - Added a test to prevent rare failures in
get_stats19()
whendata_dir
points to the working directory
- Add
get_stats19_adjustments()
function - Use GH Actions for CI (#177)
- Fixed a problem with
get_stats19()
and multiple years that could be linked with the same data file (#168) - Fix issues with vignettes for CRAN (#190)
- Support for 2019 data (#171)
- Tests now pass on the development version of R (4.0.0)
- The package now has a hex sticker! See #132 for discussion
- The output of formatted crash datasets gains a new column,
datetime
that is a properly formatted date-time (POSIXct
) object in the correct timezone (Europe/London
) (#146) - Enables the download of multiple years as per #99, thanks to Layik Hama
- Users can now set the default data download directory with STATS19_DOWNLOAD_DIRECTORY=/path/to/data in your .Renviron file: #141
get_stats19()
gains a new argumentoutput_format()
that enables results to be returned as ansf
object or appp
object for use the thespatstat
package thanks to work by Andrea Gilardi #136
- Now enables the download of 2018 data
- Various bug fixes, see https://github.com/ropensci/stats19/issues
- Update website link: https://docs.ropensci.org/stats19/
- New work-in-progress vignette on vehicles data: https://docs.ropensci.org/stats19/articles/stats19-vehicles.html
- Major change to
dl_stats19()
: it is now much easier to download STATS19 data. By defaultask = FALSE
inget_stats19()
anddl_stats19()
.
- Fixed issue with column labels not being there - see #82
get_stats19()
gains anask
argument (TRUE
by default, set asFALSE
to make road crash data access even more automated!)- The
date
column now is of the correct class after formattingPOSIXct
. See #86 - Added a
NEWS.md
file to track changes to the package.