These function resemble save and save.image, except that any functions which have been mtraced (see the debug package) will be temporarily untraced during saving (though the debug package is not needed to run them). Save() is like save.image()Save.pos(i) saves all objects from the ith position on the search list in the corresponding .Rdata file. There is less flexibility in the arguments than for the system equivalents.
If a function f is saved while mtraced and then restored into a different Rsession, there will be an error message when you try to run f. Assuming that the debug package is loaded, this can be fixed by mtrace(f,FALSE) or mtrace(f) if you really want to debug f. However, you can avoid the problem in the first place by always calling Save and Save.pos; this is faster than manually untracing and retracing, and avoids losing any breakpoints. If you use the cd system in mvbutils, you will rarely need to call Save.pos directly; cd, move and FF will do it for you.
To exclude objects from saving, store their names in options( dont.save). The default exclusion is .packageName; good additions might be last.warning and .Last.value.
path is normally inferred from the path attribute of the pos workspace. If no such attribute can be found (e.g. if the attached workspace was a list object), you will be prompted. If path is a directory, the file will be called ".Rdata". If you specify path, it must be a complete directory path or file path (i.e. it will not be interpreted relative to a path attribute).