set_spec_version: Set and Reset Spec Version

View source: R/tmbutils.R

set_spec_versionR Documentation

Set and Reset Spec Version

Description

Set the spec version and optionally compile a specific c++ file associated with this version.

Usage

set_spec_version(v, cpp_path = NULL, use_version_directories = TRUE)

reset_spec_version()

Arguments

v

character string with spec version

cpp_path

string containing path to a directory containing a file called macpan.cpp, which is to be used to construct the objective function – the default is NULL, which will make use of the packaged source file

use_version_directories

is cpp_path organized by sub-directories with names given by the spec version number? (as they are in inst/tmb) McMasterPandemic.cpp

Details

The user need to have write permissions to cpp_path, because object and shared object files will be created in this directory.

reset_spec_version returns specs being assumed and c++ file being used to factory-fresh settings.


bbolker/McMasterPandemic documentation built on Aug. 25, 2024, 6:35 p.m.