Skip to content

Commit

Permalink
lintr, avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 29, 2023
1 parent 4618ab7 commit 76108bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/random_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ random_parameters <- function(model, component = "conditional") {
.n_randomeffects <- function(model) {
vapply(
insight::get_data(model, verbose = FALSE)[insight::find_random(model, split_nested = TRUE, flatten = TRUE)],
function(i) insight::n_unique(i),
insight::n_unique,
numeric(1)
)
}
Expand Down
2 changes: 1 addition & 1 deletion R/utils_format.R
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
}

# check if we have model data, else return parameter table
model_data <- insight::get_data(model)
model_data <- insight::get_data(model, verbose = FALSE)
if (is.null(model_data)) {
params
}
Expand Down

0 comments on commit 76108bd

Please sign in to comment.