tests/testthat/helper-effects-reference.R

reference_problem <- function() {
  suppressWarnings(create_problem(
    pu = data.frame(id = 1:2, cost = 1),
    features = data.frame(id = 1, name = "habitat"),
    dist_features = data.frame(pu = 1:2, feature = 1, amount = c(100, 0))
  )) |> add_actions(actions = data.frame(id = "restore"))
}

Try the multiscape package in your browser

Any scripts or data that you put into this service are public.

multiscape documentation built on Oct. 12, 2026, 5:08 p.m.