Skip to contents

A non-erroring capability probe for a PEST++ family executable. It is the documented way for examples, vignettes, and conditional tests to skip gracefully when no binary is installed: every PESTO algorithm runs natively in R, so the external binaries are needed only for the optional cross-checking and .pst-file paths.

Usage

pestpp_available(which = "pestpp-ies")

Arguments

which

Character scalar naming the executable to probe. Defaults to "pestpp-ies"; any PEST++ tool name is accepted, e.g. "pestpp-glm", "pestpp-swp", "pestpp-sen".

Value

A length-one logical: TRUE if the named executable is resolvable, FALSE otherwise. Never errors.

Details

The probe resolves the executable exactly as pesto_ies() and friends do – the per-tool environment variable (e.g. PESTPP_IES_EXE_PATH), then PESTPP_BIN_DIR, then the system PATH – but never throws. PESTO bundles no binaries: PEST++ ships no installer and is not on the PATH by default, so pointing at an existing install by environment variable is the normal way to reach it from R.

Examples

# FALSE on a machine without PEST++ installed -- and that is fine:
pestpp_available()
#> [1] FALSE
pestpp_available("pestpp-glm")
#> [1] FALSE