# \donttest{
if (curl::has_internet()) {
# type by default is collisions table
dl_stats19(year = 2022)
# with type as casualty
dl_stats19(year = 2022, type = "casualty")
# try another year
dl_stats19(year = 2018)
}
# }
Run the code above in your browser using DataLab