sharedObjectPkgOptions {SharedObject} | R 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)

[Package SharedObject version 1.6.0 Index]