sharedObjectPkgOptions: Get or set the global options for the SharedObject package

View source: R/packageOptions.R

sharedObjectPkgOptionsR Documentation

Get or set the global options for the SharedObject package

Description

Get or set the global options for the SharedObject package

Usage

sharedObjectPkgOptions(..., literal = TRUE)

Arguments

...

The name of the option(s), it can be either symbols or characters. if the argument is missing, it means getting all option. See examples.

literal

Whether the parameters in ... are always treated as characters.

Value

set: The old package options

get: A list of the package options or a single value

Examples

## Get all options
sharedObjectPkgOptions()

## Get copyOnWrite only
sharedObjectPkgOptions(copyOnWrite)
sharedObjectPkgOptions("copyOnWrite")
opt <- "copyOnWrite"
sharedObjectPkgOptions(opt, literal = FALSE)


## Set options
sharedObjectPkgOptions(copyOnWrite = FALSE)
## Check if we have changed the option
sharedObjectPkgOptions(copyOnWrite)

## Restore the default
sharedObjectPkgOptions(copyOnWrite = TRUE)

Jiefei-Wang/SharedObject documentation built on Aug. 19, 2023, 5:47 p.m.