From 756878b309e7ae1bfc272570debccd487772b337 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 13 Apr 2024 10:19:40 +0200 Subject: [PATCH 1/3] fixed() not found after #1064 Fixes #1084 --- R/methods_glmmTMB.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/methods_glmmTMB.R b/R/methods_glmmTMB.R index 5fd7b8473..07d3b46ee 100755 --- a/R/methods_glmmTMB.R +++ b/R/methods_glmmTMB.R @@ -50,7 +50,7 @@ get_vcov.glmmTMB <- function(model, ...) { #' @rdname get_coef #' @export get_coef.glmmTMB <- function(model, ...) { - fixef(model)$cond + lme4::fixef(model)$cond } From cc79c717789756cbe81327861cb1dade0cf5880a Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 13 Apr 2024 10:55:21 +0200 Subject: [PATCH 2/3] 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 } From db605351f6eb05c4c274cb9fb020ceca479454f4 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Sat, 13 Apr 2024 07:02:18 -0400 Subject: [PATCH 3/3] glmmTMB::fixef --- R/methods_glmmTMB.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/methods_glmmTMB.R b/R/methods_glmmTMB.R index 1346780a8..7681a9f8d 100755 --- a/R/methods_glmmTMB.R +++ b/R/methods_glmmTMB.R @@ -50,8 +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 + glmmTMB::fixef(model)$cond }