From 31bce79e30c8f722063b5494365bf82cecf04c7f Mon Sep 17 00:00:00 2001 From: Thierry Onkelinx Date: Thu, 3 Oct 2024 16:26:43 +0200 Subject: [PATCH] selection is based on the full parameter name --- R/impute_inla.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/impute_inla.R b/R/impute_inla.R index 00efe24..024519c 100644 --- a/R/impute_inla.R +++ b/R/impute_inla.R @@ -57,7 +57,7 @@ setMethod( ) } - ifelse(is.null(model$model.spde2.blc), "Predictor:%i", "APredictor:%i") |> + ifelse(is.null(model$model.spde2.blc), "^Predictor:%i", "^APredictor:%i") |> sprintf(missing_obs) -> missing_obs assert_that(requireNamespace("INLA", quietly = TRUE)) assert_that(requireNamespace("sn", quietly = TRUE))