- 问题补充 : 2019/03/14 00:19
Rstudio中运行上面代码时,FOR循环报错:
Error in guess_header_(datasource, tokenizer, locale) :
Cannot read file C:/Users/user/AppData/Local/Temp/RtmpA9Kn0b/file146847e61a63: 文件所在的卷已被外部更改,因此打开的文件不再有效。请大神指教该如何解决啊,万分感谢
library(readr) library(DBI) library(magrittr) all_files <- list.files('F:/学习/R语言/downloadData/R日志') con <- dbConnect(RSQLite::SQLite(),"F:/学习/R语言/sqlite库/data.db") for (i in 1:length(all_files)){ print(i) df <- read_csv(all_files[i], col_types = cols(date = col_character(), time = col_character())) %>% as.data.frame() dbWriteTable(con, "all_data", df, overwrite = FALSE,append =TRUE) } Rstudio中运行上面代码时,FOR循环报错:
Rstudio中运行上面代码时,FOR循环报错:
Error in guess_header_(datasource, tokenizer, locale) :
Cannot read file C:/Users/user/AppData/Local/Temp/RtmpA9Kn0b/file146847e61a63: 文件所在的卷已被外部更改,因此打开的文件不再有效。请大神指教该如何解决啊,万分感谢