Skip to contents

Rebuilds an isolated RTMB objective when needed and evaluates the report at the stored fitted point, or the configured point if the object is unfitted. This returns point predictions, not posterior summaries.

Usage

opal_report(x)

Arguments

x

An opal_obj.

Value

The named model report at the stored parameters.

Examples

assessment <- opal_read(system.file("extdata", "opaka_quickstart_fit.rds",
                                   package = "opal"))
#> Warning: The saved fit runtime identity differs because it was serialized under a different R version; verifying by rebuild.
#> Warning: The saved fit runtime identity differs because it was serialized under a different R version; verifying by rebuild.
#> Warning: The opal_model implementation checksum differs from the saved fit. The saved fit used opal 0.0.4; the current version is 0.1.1.
head(opal_report(assessment)$spawning_biomass_y)
#> Warning: The model implementation checksum differs from the saved object.
#> Warning: The model implementation checksum differs from the saved object.
#> [1] 4029.267 3939.677 3803.894 3690.690 3623.467 3581.016