sharedObjectPkgOptions {SharedObject} | R Documentation |
Get or set the global options for the SharedObject package
sharedObjectPkgOptions(..., literal = TRUE)
... |
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 |
set
: The old package options
get
: A list of the package options or a single value
## 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)