Skip to content

Commit

Permalink
Fix "marked UTF-8 strings" error on r-devel (I hope)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-long committed Mar 11, 2021
1 parent 5808ee0 commit 8829c06
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: jtools
Type: Package
Title: Analysis and Presentation of Social Scientific Data
Version: 2.1.2
Version: 2.1.3
Authors@R: person(c("Jacob","A."), "Long", email = "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-1582-6214"))
Description: This is a collection of tools that the author (Jacob) has written
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# jtools 2.1.3

* Fixed an encoding error in the `movies` dataset.

# jtools 2.1.2

* Fixed minor error in upcoming version of R.
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Test environments
* Local Windows 10 install, R 4.0.2
* Local Windows 10 install, R 4.0.3
* Ubuntu (Trusty) (on Travis-CI), R-release, R-devel
* Windows 2012 Server (on Appveyor) R-release, R-devel

Expand Down
4 changes: 4 additions & 0 deletions data-raw/movie_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@ mcf <- mutate(mc2,
ungroup()

movies <- mcf

# Added to convert to ASCII encoding
movies[sapply(movies, is.character)] <-
lapply(movies[sapply(movies, is.character)], iconv, from = "UTF-8", to = "ASCII")
Binary file modified data/movies.rda
Binary file not shown.

0 comments on commit 8829c06

Please sign in to comment.