Q: RStudio crashes loading 8000 csv files I'm trying to compile 8000 csv files in my local directory into one dataframe using
df <- do.call(rbind, lapply(file_list, function(x) 
  transform(read.csv(x), File = basename(x))))

RStudio runs out of memory and crashes.
Is there a way to improve this code to avoid the crash?
