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

Error in if (stringi::stri_enc_isascii(lines)) { : the condition has length > 1 #1565

Open
struckma opened this issue Nov 27, 2024 · 0 comments

Comments

@struckma
Copy link

Hello, thank you for your great work about the tidyverse, I really like it. I am so sorry, but I've to report a small bug, just call:

> readr::guess_encoding(list("a", "b"))
Error in if (stringi::stri_enc_isascii(lines)) { : 
  the condition has length > 1

The reason is in the referred line 35 of encoding.R in the current main branch:

if (stringi::stri_enc_isascii(lines)) {

should read

if (all(stringi::stri_enc_isascii(lines))) {

Thank you for fixing,

Stephan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant