The function 'rm.sv' deletes an R object from an environment on the search path, and then saves that environment to its associated file.  The rm.sv function also applies to the objects specified by a character vector of object names.  

Arguments:

list = the object to be deleted; or a character vector of object names.

'env.on.path' = the name of R-environment containing the object;  Specify 'pos' or 'env.on.path', but not both. Note that 'env.on.path' has the form, 'env.on.path = "c:/..." or 'env.on.path = "c:\\...", and NOT as, 'env.on.path = "file:c:\...", i.e., directories on a path are separated by forward slashes or double backslashes and not by single backslashed. Furthermore, 'env.on.path' is matched by partial matching, so that 'env.on.path = "myfuns.rda" will be matched to "file:c:/job/myfuns.rda" if it is on the search path (and a unique match). Note also that 'env.on.path' and 'pos' may NOT specify a package. 

pos = position number of the directory containing the object; by default, pos = NA. The environment where the object is to be deleted should be specified by 'env.on.path' or by 'pos', but not both.  

If 'rm.doc.objects = TRUE', then .doc objects that correspond to objects in 'list' will also be deleted.  If 'rm.doc.objects = FALSE', then only the objects names in 'list' will be deleted.  

'feedback = TRUE' (default) means that the call to 'rm.sv' will give feedback about the success or failure of the move.  'feedback = FALSE' omits this feedback.

root.dir returns the root directory for the current computer.  The 'root.dir' function expects that 1 of 5 cases will apply:

1) R is running on a computer that has an object named 'root.dir.local'  on the search path.  'root.dir.local' is a string that names the directory to be treated as the root directory on the current computer.  If 'root.dir.local' exists on the search path, it supercedes any other specification of the root directory and the 'root.dir' function returns 'root.dir.local' as its value.  Thus, you can set the directory to be treated as the root directory on any computer by creating a 'root.dir.local' that names that directory, e.g., 'root.dir.local <- "c:/mywork/".

2) R is running on JM's X220 laptop and the computer name is 'SPARSEGREY'.  In this case, 'root.dir' returns "e:/".

3) R is running on Dad's computer and the computer name is 'SFMIYA2011-PC'.  In this case, 'root.dir' returns "b:/ab/john/".

4) R is running on Jean's ThinkPad and the computer name is 'JC-THINKPAD'.  In this case, 'root.dir' returns "d:/john/".  

5) None of the cases, (1) - (4) applies.  In this case, the root directory is the root directory on the path to the current R working directory.  E.g., if 'getwd()' returns "C:/mywork/data", then 'root.dir()' returns 'c:/'.  

If endSlash = TRUE, then the root specification ends in a /; otherwise it does not, e.g., root.dir( endSlash = FALSE ) returns e: on the x220 laptop.