r语言 - reader不能将多个.csv文件合并在一起



我最近更新了我所有的包,包括reader()。我试图合并多个相同格式的。csv文件从一个文件夹到R.

下面是我使用的代码:
df <- list.files(path = "file path here",  # Identify all CSV files
pattern = "*.csv", full.names = TRUE) %>% 
lapply(read_csv) %>%                                           
bind_rows

错误如下:

Error in app$vspace(new_style$`margin-top` %||% 0) : attempt to apply non-function
In addition: Warning message:
One or more parsing issues, see `problems()` for details

有人经历过这个或知道一个工作?我已经重新安装了R并加载了所有的包,但它仍然不能工作。

谢谢!

如评论中所述,错误肯定来自您使用read_csv。您可以直接使用read.csv的基本R版本:

df <- list.files(path = "file path here",  # Identify all CSV files
pattern = "*.csv", full.names = TRUE) %>% 
lapply(read.csv) %>%                                           
bind_rows()