Learn R Programming

TMB (version 1.9.15)

config: Get or set internal configuration variables

Description

Get or set internal configuration variables of user's DLL.

Usage

config(..., DLL = getUserDLL())

Value

List with current configuration

Arguments

...

Variables to set

DLL

Name of user's DLL. Auto-detected if missing.

Details

A model compiled with the TMB C++ library has several configuration variables set by default. The variables can be read and modified using this function. The meaning of the variables can be found in the Doxygen documentation.

Examples

Run this code
if (FALSE) {
## Load library
dyn.load(dynlib("mymodel"))
## Read the current settings
config(DLL="mymodel")
## Reduce memory peak of a parallel model by creating tapes in serial
config(tape.parallel=0, DLL="mymodel")
obj <- MakeADFun(..., DLL="mymodel")
}

Run the code above in your browser using DataLab