4 ms·
Yes, save and load suck, and I never use them (and encourage others to avoid them too). Use saveRDS and readRDS instead (and yes those are their totally inconsi
by hadley 13y ago
Yes, save and load suck, and I never use them (and encourage others to avoid them too). Use saveRDS and readRDS instead (and yes those are their totally inconsistent names). (Also the documentation for load does tell you where the objects get bound)
Language and standard library are tightly coupled, but problems with the standard library are _much_ easier to fix than problems with the language.
- alsocasey 13y agoAlternately, load() to an environment other than the global one and ls() to figure out what you just loaded... But since attending one of your talks that mentioned saveRDS/readRDS in passing, I've switched over entirely to those.
- hadley 13y agoAlso load returns (invisibly) the names of the objects it loaded, so `(load(...))` will print them out.