saveObject: Save Object

View source: R/saveObject.r

saveObjectR Documentation

Save Object

Description

Save 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 which 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.

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.

Value

logical TRUE if object was saved FALSE if not.


OskarHansson/strvalidator documentation built on July 22, 2023, 12:04 p.m.