powered by
just a convenience for this work, not general purpose
smartSave(obj, file, outdir)
an object
file name. must end in "csv", "xlsx" or "rds"
directory path