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

Problem with version 2.1.3 #1466

Closed
CamiloMontesM opened this issue Feb 6, 2023 · 2 comments
Closed

Problem with version 2.1.3 #1466

CamiloMontesM opened this issue Feb 6, 2023 · 2 comments
Labels
reprex needs a minimal reproducible example

Comments

@CamiloMontesM
Copy link

I am using a read_csv function from readr package, which worked fine for me with readr version 2.1.2; however, when upgrading to version 2.1.3, the following problem appears: Warning: Error in enc2utf8: argument is not a character vector.

encabezado_csv <- read_csv(input$csv$datapath,
                               col_names = FALSE, 
                               trim_ws = TRUE,
                               skip_empty_rows = TRUE) %>% 
slice(1:4)

How can I solve this problem?

(https://community.rstudio.com/t/problem-with-readr-version/159413)

@jennybc
Copy link
Member

jennybc commented Feb 6, 2023

I can't run this code to see what you're experiencing. I.e. I don't have input$csv$datapath. Apparently read_csv() is expecting it to be character and I guess it's not?

Could you please turn this into a self-contained reprex (short for minimal reproducible example)? It will help us help you if we can be sure we're all working with/looking at the same stuff.

If you've never heard of a reprex before, you might want to start by reading the tidyverse.org help page.

You can install reprex by running (you may already have it, though, if you have the tidyverse package installed):

install.packages("reprex")

Thanks!

@jennybc jennybc added the reprex needs a minimal reproducible example label Feb 9, 2023
@hadley
Copy link
Member

hadley commented Jul 31, 2023

I've closed this issue due to lack of requested reprex. If you still care about this bug, please open a new issue with a reprex.

@hadley hadley closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reprex needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

3 participants