From 22f1ea99d8f796dadd3c6470ad9263d672f4c99b Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 4 Oct 2023 13:19:51 +0200 Subject: [PATCH] lintr --- R/r2.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/r2.R b/R/r2.R index 5b266efc7..c844f22cd 100644 --- a/R/r2.R +++ b/R/r2.R @@ -804,7 +804,7 @@ r2.svyglm <- function(model, ...) { #' @export r2.vglm <- function(model, ...) { - out <- list("R2_McKelvey" = r2_mckelvey(model)) + out <- list(R2_McKelvey = r2_mckelvey(model)) names(out$R2_McKelvey) <- "McKelvey's R2" class(out) <- c("r2_pseudo", class(out)) out @@ -817,7 +817,7 @@ r2.vgam <- r2.vglm #' @export r2.DirichletRegModel <- function(model, ...) { - out <- list("R2_Nagelkerke" = r2_nagelkerke(model)) + out <- list(R2_Nagelkerke = r2_nagelkerke(model)) names(out$R2_Nagelkerke) <- "Nagelkerke's R2" class(out) <- c("r2_pseudo", class(out)) out