Skip to content
Prev 140079 / 398521 Next

writintg wrappers around save()

The names of the objects specified either as symbols (or character
      strings) in '...' or as a character vector in 'list' are used to
      look up the objects from environment 'envir'.

The default for envir is parent.frame().  You want to change it (and watch 
out that default and explicit arguments are evaluated in different 
places).  One approach is

save.verbose <- function(..., file, envir = parent.frame())
{
     cat("save.verbose:", file, "\n")
     save(..., file=file, envir=envir)
}
On Fri, 21 Mar 2008, Vadim Organovich wrote: