odin_dust_package: Update package code

View source: R/package.R

odin_dust_packageR Documentation

Update package code

Description

Update generated code in a package that uses odin and dust to provide a model. This will generate new dust code in inst/dust and from that generate a full model in src, and an R interface in R/dust.R, along with the cpp11 attributes that are needed to use the model.

Usage

odin_dust_package(path, options = NULL)

Arguments

path

Path to the package root (the directory that contains DESCRIPTION)

options

An odin::odin_options or odin_dust_options object. If given it overrides arguments; if it is already a odin_dust_options object it is returned unmodified. Otherwise it is passed through to odin::odin_options where it will override arguments in ... but respond to the odin_dust specific options (real_type, etc)

Value

The path to the package


mrc-ide/odin.dust documentation built on Oct. 10, 2024, 4:05 a.m.