Loading many files at once?

lapply works, but you have to specify that you want the objects loaded to the .GlobalEnv otherwise they’re loaded into the temporary evaluation environment created (and destroyed) by lapply.

lapply(file_names,load,.GlobalEnv)

Leave a Comment