The wrap_model
function uses terra::wrap()
to easier ship a
DistributionModel
object.
Arguments
- mod
Provided
DistributionModel
object.- verbose
logical
indicating whether messages should be shown. OverwritesgetOption("ibis.setupmessages")
(Default:TRUE
).
Examples
if (FALSE) { # \dontrun{
x <- distribution(background) |>
add_biodiversity_poipo(virtual_points, field_occurrence = 'observed', name = 'Virtual points') |>
add_predictors(pred_current, transform = 'scale',derivates = 'none') |>
engine_xgboost(nrounds = 2000) |>
train(varsel = FALSE, only_linear = TRUE)
wrap_model(x, "testmodel.rds")
} # }