Problem with readr version

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?

Regards,

In not sure that this syntaxes is correct :thinking: or maybe you are work with Shiny.

Thank you. I'm working with Shiny, but that same syntax worked with version 2.1.2 and not with 2.1.3, however I fixed it thanks to your comment.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.