Skip to content

get_variance() returns NULL when R package site is built via github actions #928

Open
@matschmitz

Description

@matschmitz

When building the site of a simple testing R package locally and rendering the article, the insight::get_variance() function works as expected. However, when building the site via GitHub Actions, the function returns NULL.

Steps to Reproduce:

Locally, render the following code in an article and observe that get_variance() works correctly:

library(pkgtest)
library(brms)
library(insight)

mdl <- brms::brm(mpg ~ hp + (1 | cyl), data = mtcars, cores = 4)

insight::get_variance(mdl)
#> $var.fixed 
#> [1] 4.873527 

#> $var.random
#> [1] 22.39223 

#> $var.residual 
#> [1] 8.502559 
#> attr(,"class") 
#> [1] "insight_aux" "numeric"

#> $var.distribution 
#> [1] 8.502559 
#> attr(,"class") #> [1] "insight_aux" "numeric"

#> $var.dispersion 
#> [1] 0 
#> $var.intercept 
#> cyl
#> 22.39223 

When the same article is rendered via GitHub Actions, the result of get_variance() is NULL

Local Build:

  • OS: Windows 10 x64
  • R version: 4.4.1 (2024-06-14 ucrt)
  • insight: 0.20.4 (CRAN)
  • brms: 2.21.0

GitHub Actions:

  • OS: Ubuntu 22.04.4 LTS
  • R version: 4.4.1
  • insight: 0.20.4 (CRAN)
  • brms: 2.21.0

There may be an environment or package dependency issue specific to GitHub Actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions