Set Read/Write Permission on a S-PLUS Database

DESCRIPTION:

For each database, set the read / write status.

USAGE:

setDBStatus(where, writable)

REQUIRED ARGUMENTS:

where
either a character string with the name of the database to be modified or an integer denoting the database position in the search list.
writable
either a logical value, TRUE, means turn write permission on and FALSE turns it off. Or it can be one of the character strings: "read", "readwrite".

VALUE:

a character string denoting the new read / write status of the database.

SEE ALSO:

EXAMPLES:

# By default, library attaches a database as read only:
library(MySwork, lib.loc=getenv("HOME"), first=T)

setDBStatus("MySwork", T)  # Set to read/write

setDBStatus(2, F)  # Now set back to read

detach("MySwork")  # Remove from search