I am attempting a simple short script whereby I import all RDS files from a certain location. I can get the readRDS to work when hard-coding the file name, but when I attempt to use a variable and Paste to accomplish the same thing, I get an error:
"Error in readRDS(file = paste0("~/R/SFDC_Analysis/Telemetry/Rda/", varFileName, :
unknown input format"
while (n <= varNumFiles)
{
varFileName <- df_listFiles[n, ]
varFileName <- varFileName
df_Import <- readRDS(file = paste0("~/R/SFDC_Analysis/Telemetry/Rda/",varFileName, sep = ""))
n <- n + 1
}