Skip to contents

Reports whether cppODE(), cvode() and cppFUN() can generate and compile a model without installing anything first. Code generation needs Python with SymPy, which reticulate provisions on first use and may download; this check never triggers that.

Usage

codegenAvailable(backend = c("native", "cvode"))

Arguments

backend

"native" (default) for cppODE() and cppFUN(), "cvode" to also require the SUNDIALS libraries of the cvode() backend.

Value

TRUE when a C++ compiler and SymPy are found without installing anything, FALSE otherwise.

Examples

codegenAvailable()
#> [1] TRUE
codegenAvailable("cvode")
#> [1] TRUE