Skip to content

Fix r2() error for glmmTMB negative-binomial models without random effects #1842

Fix r2() error for glmmTMB negative-binomial models without random effects

Fix r2() error for glmmTMB negative-binomial models without random effects #1842

Status Success
Total duration 3m 43s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
lint / lint: R/check_group_variation.R#L316
file=R/check_group_variation.R,line=316,col=7,[return_linter] Use implicit return behavior; explicit return() is not needed.
lint / lint: R/check_group_variation.R#L307
file=R/check_group_variation.R,line=307,col=27,[paste_linter] Use paste(), not paste0(), to collapse a character vector when sep= is not used.
lint / lint: R/check_group_variation.R#L307
file=R/check_group_variation.R,line=307,col=27,[paste_linter] toString(.) is more expressive than paste(., collapse = ", "). Note also glue::glue_collapse() and and::and() for constructing human-readable / translation-friendly lists
lint / lint: R/check_group_variation.R#L292
file=R/check_group_variation.R,line=292,col=14,[scalar_in_linter] Use comparison operators (e.g. ==, !=, etc.) to match length-1 scalars instead of %in%. Note that if x can be NA, x == 'arg' is NA whereas x %in% 'arg' is FALSE, so consider extra protection for the missing case in your code.
lint / lint: R/check_group_variation.R#L150
file=R/check_group_variation.R,line=150,col=3,[object_overwrite_linter] 'by' is an exported object from package 'base'. Avoid re-using such symbols.
lint / lint: R/check_factorstructure.R#L230
file=R/check_factorstructure.R,line=230,col=3,[return_linter] Use implicit return behavior; explicit return() is not needed.
lint / lint: R/check_collinearity.R#L595
file=R/check_collinearity.R,line=595,col=3,[object_overwrite_linter] 'R' is an exported object from package 'tools'. Avoid re-using such symbols.
lint / lint: R/check_collinearity.R#L540
file=R/check_collinearity.R,line=540,col=13,[paste_linter] Use paste(), not paste0(), to collapse a character vector when sep= is not used.
lint / lint: R/check_collinearity.R#L540
file=R/check_collinearity.R,line=540,col=13,[paste_linter] toString(.) is more expressive than paste(., collapse = ", "). Note also glue::glue_collapse() and and::and() for constructing human-readable / translation-friendly lists
lint / lint: R/check_collinearity.R#L450
file=R/check_collinearity.R,line=450,col=1,[cyclocomp_linter] Reduce the cyclomatic complexity of this expression from 49 to at most 40. Consider replacing high-complexity sections like loops and branches with helper functions.