Created
October 5, 2020 14:20
-
-
Save holgerbrandl/9974930938da62ba9b62e58c5848b92a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman::p_load(zeallot) | |
load_multiple <- function (rdataFile) | |
{ | |
load(rdataFile, ex <- new.env()) | |
mget(objects(ex, sorted = T), envir = ex) | |
} | |
foo = 1 | |
bar = 2 | |
save(foo, bar, file="my.RData") | |
c(myFoo, myBar) %<-% load_multiple("my.RData") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment