Learn R Programming

simr (version 1.0.0)

simrOptions: Options Settings for simr

Description

Control the default behaviour of simr analyses.

Usage

simrOptions(...)

getSimrOption(opt)

Arguments

...
a list of names to get options, or a named list of new values to set options.
opt
option name (character string).

Value

  • getSimrOption returns the current value for the option x. simrOptions returns
    1. a named list of all options, if no arguments are given.
    2. a named list of specified options, if a list of option names is given.
    3. (invisibly) a named list of changed options with their previous values, if options are set.

Examples

Run this code
getSimrOption("nsim")
oldopts <- simrOptions(nsim=5)
getSimrOption("nsim")
simrOptions(oldopts)
getSimrOption("nsim")

Run the code above in your browser using DataLab