From cc79c717789756cbe81327861cb1dade0cf5880a Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 13 Apr 2024 10:55:21 +0200 Subject: [PATCH] check if package is installed --- R/methods_glmmTMB.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/methods_glmmTMB.R b/R/methods_glmmTMB.R index 07d3b46ee..1346780a8 100755 --- a/R/methods_glmmTMB.R +++ b/R/methods_glmmTMB.R @@ -50,6 +50,7 @@ get_vcov.glmmTMB <- function(model, ...) { #' @rdname get_coef #' @export get_coef.glmmTMB <- function(model, ...) { + insight::check_if_installed("lme4") lme4::fixef(model)$cond }