Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section 14.6.1 second code chunk throws an error #1671

Open
stephenbalogun opened this issue Jun 18, 2024 · 1 comment
Open

Section 14.6.1 second code chunk throws an error #1671

stephenbalogun opened this issue Jun 18, 2024 · 1 comment
Labels
tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day

Comments

@stephenbalogun
Copy link
Contributor

The code chunk below from the book chapter is no longer reproducible using R version 4.4.0 and {readr} 2.1.5

x1 <- "text\nEl Ni\xf1o was particularly bad this year"
read_csv(x1)$text
#> [1] "El Ni\xf1o was particularly bad this year"

The chunk now throws an error as shown below:

x1 <- "text\nEl Ni\xf1o was particularly bad this year"
readr::read_csv(x1)$text
#> Warning in grepl("\n", path): unable to translate 'text
#> El Ni<f1>o was particularly bad this year' to a wide string
#> Warning in grepl("\n", path): input string 1 is invalid
#> Warning in grepl("^((http|ftp)s?|sftp)://", path): unable to translate 'text
#> El Ni<f1>o was particularly bad this year' to a wide string
#> Warning in grepl("^((http|ftp)s?|sftp)://", path): input string 1 is invalid
#> Warning in regexpr(regex, path, perl = TRUE): input string 1 is invalid UTF-8
#> Error in file.exists(path): file name conversion problem -- name too long?

Created on 2024-06-18 with reprex v2.1.0

@davidrsch
Copy link
Contributor

This is related to issues #1478 and #1599 both related with tidyverse/readr#1521 . The changes suggested in the last mentioned issue hasn't yet been applied.

@mine-cetinkaya-rundel mine-cetinkaya-rundel added the tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day
Projects
None yet
Development

No branches or pull requests

3 participants