dushoff / shellpipes

An R package for working through Makefile and command lines
0 stars 2 forks source link

function naming conventions? #3

Open mikeroswell opened 5 months ago

mikeroswell commented 5 months ago

Why is it it saveEnvironment, saveVars, and rdsSave (vs. saveRds or (maybe?) saveVar though asking users to remember the s might be too annoying?

dushoff commented 5 months ago

Well, history of course. saveEnvironment and saveVars came first. saveRDS is a built-in function, so pretty annoying to have saveRds mean something else.. Probably the right solution would be to add rdaSave as a synonym for (or expansion of) saveVars, and rdaLoad in a similar manner.

bbolker commented 2 months ago

... and base R inconsistently has save()/load() and saveRDS()/readRDS() (sigh).