Learn R Programming

fb4package (version 2.0.0)

validate_bioenergetic_for_simulation: Comprehensive validation for Bioenergetic objects

Description

Validates a Bioenergetic object before simulation, checking all required components with comprehensive error accumulation.

Usage

validate_bioenergetic_for_simulation(bio_obj)

Value

A named list with four elements: valid (logical),

errors (character vector), warnings (character vector), and ready_to_run (logical, TRUE only when valid is

TRUE). Errors are accumulated across all sub-checks (structure, species equations, temperature data, diet data, initial weight) rather than stopping at the first failure.

Arguments

bio_obj

Bioenergetic object

Examples

Run this code
# \donttest{
# Requires a fully-configured Bioenergetic object; see ?Bioenergetic
# result <- validate_bioenergetic_for_simulation(bio)
# result$valid
# }

Run the code above in your browser using DataLab