Learn R Programming

strvalidator (version 1.3.0)

saveObject: Save object

Description

Saves an object in the specified environment.

Usage

saveObject(name = NULL, object, parent = NULL, suggest = "",
  env = parent.frame(), remove = NULL, debug = FALSE)

Arguments

name
character giving the name of the object to save. If NULL a dialogue asks for a name.
object
object to save.
parent
object specifying the parent GUI object to center the message box.
suggest
character string for a suggested name for the object to save/re-name.
env
environment in wich to save and search for existing objects.
remove
character string for a named object to remove (e.g. the original object if re-naming).
debug
logical indicating printing debug information.

Value

  • logical TRUE if object was saved FALSE if not.

Details

Saves an object with the given name in the specified environment if it does not exist. If the object exist a message box ask if the object should be overwritten. The function can also be used to re-name if 'name' is not provided (NULL). The 'suggest' provides a suggested name for the object to re-name.