Skip to content

Commit

Permalink
Fix non-UTF-8 characters in data files
Browse files Browse the repository at this point in the history
  • Loading branch information
s87jackson committed Feb 13, 2024
1 parent 7a3b34c commit d3754c9
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 43 deletions.
14 changes: 14 additions & 0 deletions data-raw/codebooks.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,17 @@ gescrss_codebook <-

usethis::use_data(fars_codebook, overwrite = TRUE)
usethis::use_data(gescrss_codebook, overwrite = TRUE)

# Addressing check note: found 806 marked UTF-8 strings
#
# load("C:/Users/s87ja/Dropbox/Work/toXcel/FARS/rfars/data/fars_codebook.rda")
# load("C:/Users/s87ja/Dropbox/Work/toXcel/FARS/rfars/data/gescrss_codebook.rda")
# load("C:/Users/s87ja/Dropbox/Work/toXcel/FARS/rfars/data/geo_relations.rda")
#
# fars_codebook <- fars_codebook %>% mutate(across(everything(), iconv, from="UTF-8", to="ASCII"))
# gescrss_codebook <- gescrss_codebook %>% mutate(across(everything(), iconv, from="UTF-8", to="ASCII"))
# geo_relations <- geo_relations %>% mutate(across(everything(), iconv, from="UTF-8", to="ASCII"))
#
# usethis::use_data(fars_codebook, overwrite = TRUE)
# usethis::use_data(gescrss_codebook, overwrite = TRUE)
# usethis::use_data(geo_relations, overwrite = TRUE)
Binary file modified data/fars_codebook.rda
Binary file not shown.
Binary file modified data/geo_relations.rda
Binary file not shown.
Binary file modified data/gescrss_codebook.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/articles/Save_local.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ articles:
Driver_passenger_SB_use: Driver_passenger_SB_use.html
Rural_roads: Rural_roads.html
Save_local: Save_local.html
last_built: 2024-02-13T03:13Z
last_built: 2024-02-13T19:26Z
urls:
reference: https://s87jackson.github.io/rfars/reference
article: https://s87jackson.github.io/rfars/articles
Expand Down
30 changes: 10 additions & 20 deletions docs/reference/compare_counts.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions docs/reference/counts.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions docs/reference/get_fars.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d3754c9

Please sign in to comment.