- using R Under development (unstable) (2025-09-03 r88788 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'mixpoissonreg/DESCRIPTION' ... OK
- this is package 'mixpoissonreg' version '1.0.0'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'mixpoissonreg' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [3s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s] OK
- checking loading without being on the library search path ... [3s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [14s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [9s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [121s] ERROR
Running 'testthat.R' [120s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(mixpoissonreg)
>
> test_check("mixpoissonreg")
Negative Binomial Regression - Expectation-Maximization Algorithm
Call:
mixpoissonreg(formula = daysabs ~ prog + math, data = Attendance,
em_controls = list(maxit = 1))
Coefficients modeling the mean (with log link):
(Intercept) progAcademic progVocational math
2.615321329 -0.440755734 -1.278742703 -0.005993368
Coefficients modeling the precision (with identity link):
(Intercept)
1.032717
Negative Binomial Regression - Maximum-Likelihood Estimation
Call:
mixpoissonregML(formula = daysabs ~ prog + math, data = Attendance)
Coefficients modeling the mean (with log link):
(Intercept) progAcademic progVocational math
2.615321329 -0.440755734 -1.278742703 -0.005993368
Coefficients modeling the precision (with identity link):
(Intercept)
1.032717
Negative Binomial Regression - Maximum-Likelihood Estimation
Call:
mixpoissonregML(formula = daysabs ~ prog + math, data = Attendance)
Pearson residuals:
RSS Min 1Q Median 3Q Max
339.8789 -0.9611 -0.7098 -0.3259 0.2460 4.9565
Coefficients modeling the mean (with link):
Estimate Std.error z-value Pr(>|z|)
(Intercept) 2.615321 0.196355 13.319 < 2e-16 ***
progAcademic -0.440756 0.182579 -2.414 0.0158 *
progVocational -1.278743 0.201982 -6.331 2.44e-10 ***
math -0.005993 0.002507 -2.390 0.0168 *
Coefficients modeling the precision (with link):
Estimate Std.error z-value Pr(>|z|)
(Intercept) 1.0327 0.1062 9.729 <2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Efron's pseudo R-squared: 0.1707781
Number of function calls by 'optim' = 4
Negative Binomial Regression - Maximum-Likelihood Estimation
Call:
mixpoissonregML(formula = daysabs ~ prog + math, data = Attendance,
envelope = 10, optim_controls = list(maxit = 1))
Pearson residuals:
RSS Min 1Q Median 3Q Max
339.8789 -0.9611 -0.7098 -0.3259 0.2460 4.9565
Coefficients modeling the mean (with link):
Estimate Std.error z-value Pr(>|z|)
(Intercept) 2.615321 0.196355 13.319 < 2e-16 ***
progAcademic -0.440756 0.182579 -2.414 0.0158 *
progVocational -1.278743 0.201982 -6.331 2.44e-10 ***
math -0.005993 0.002507 -2.390 0.0168 *
Coefficients modeling the precision (with link):
Estimate Std.error z-value Pr(>|z|)
(Intercept) 1.0327 0.1062 9.729 <2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Efron's pseudo R-squared: 0.1707781
Percentage of residuals within the envelope = 79.2994
Number of function calls by 'optim' = 4
[ FAIL 1 | WARN 26 | SKIP 0 | PASS 41 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-tidy.R:14:1'): (code run outside of `test_that()`) ─────────────
Error in `ll(object)`: could not find function "ll"
Backtrace:
▆
1. ├─generics::glance(fit1) at test-tidy.R:14:1
2. ├─mixpoissonreg:::glance.mixpoissonreg(fit1)
3. │ └─tibble::tibble(...)
4. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
5. │ └─rlang::eval_tidy(xs[[j]], mask)
6. ├─stats::AIC(x)
7. └─stats:::AIC.default(x)
[ FAIL 1 | WARN 26 | SKIP 0 | PASS 41 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [118s] ERROR
Error(s) in re-building vignettes:
--- re-building 'influence-mixpoissonreg.Rmd' using rmarkdown
--- finished re-building 'influence-mixpoissonreg.Rmd'
--- re-building 'intervals-mixpoissonreg.Rmd' using rmarkdown
--- finished re-building 'intervals-mixpoissonreg.Rmd'
--- re-building 'ml-mixpoissonreg.Rmd' using rmarkdown
--- finished re-building 'ml-mixpoissonreg.Rmd'
--- re-building 'tidyverse-mixpoissonreg.Rmd' using rmarkdown
Quitting from tidyverse-mixpoissonreg.Rmd:142-144 [unnamed-chunk-12]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `ll()`:
! could not find function "ll"
---
Backtrace:
▆
1. ├─generics::glance(fit)
2. ├─mixpoissonreg:::glance.mixpoissonreg(fit)
3. │ └─tibble::tibble(...)
4. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
5. │ └─rlang::eval_tidy(xs[[j]], mask)
6. ├─stats::AIC(x)
7. └─stats:::AIC.default(x)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'tidyverse-mixpoissonreg.Rmd' failed with diagnostics:
could not find function "ll"
--- failed re-building 'tidyverse-mixpoissonreg.Rmd'
--- re-building 'tutorial-mixpoissonreg.Rmd' using rmarkdown
--- finished re-building 'tutorial-mixpoissonreg.Rmd'
SUMMARY: processing the following file failed:
'tidyverse-mixpoissonreg.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [30s] OK
- checking HTML version of manual ... [6s] OK
- DONE
Status: 2 ERRORs