The compiled network is exposed via an Xptr and can be used in cpp code via the Rcpp package. Make sure to link to this package using the LinkingTo field in the DESCRIPTION file of a package, or with Rcpp::depends in C++ code.

compile(network, rateless = FALSE, force = FALSE, display_path = FALSE)

Arguments

network

a reaction network object created using network

rateless

if TRUE (default FALSE), generates propensities without using rate constants

force

if TRUE (default FALSE), forces the overwriting and recompilation of the network source file

display_path

if TRUE (default FALSE), displays the path to the network file

Value

Xptr to a compiled network object