I am trying to do a very simple rbind with a series of csvs in a folder and keep having my permission denied. I just did this same code yesterday but it is not working today and I tried restarting R.
Here is my code:
fp<-"C:/Users/dsmith2/OneDrive - TPWD/Desktop/LMB Telemetry/R/WDMay23/merge/TB"
df <- do.call(rbind,lapply(fp,read.csv))
Why is my permission denied? I don't have any csvs open when I am trying to do this and get this error:
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'C:/Users/dsmith2/OneDrive - TPWD/Desktop/LMB Telemetry/R/WDMay23/merge/TB': Permission denied