- using R version 4.5.3 (2026-03-11 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'statim/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'statim' version '0.1.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 'statim' 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking whether startup messages can be suppressed ... [1s] 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 ... [10s] OK
- checking Rd files ... [2s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [15s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [41s] ERROR
Running 'testthat.R' [40s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(statim)
>
> test_check("statim")
-- Models ----------------------------------------------------------------------
f1 : sr ~ 1
f2 : sr ~ pop15
-- Model Specification ---------------------------------------------------------
Model : Linear Regression
Method : default
== ANOVA · F ===================================================================
-- ANOVA Table -----------------------------------------------------------------
───────────────────────────────────────────────────────────
model res_df deviance df dev_diff f_value p_value
───────────────────────────────────────────────────────────
f1 49 983.628
f2 45 650.713 4 332.915 5.756 <0.001
───────────────────────────────────────────────────────────
-- Models ----------------------------------------------------------------------
f1 : sr ~ 1
f2 : sr ~ pop15
-- Models ----------------------------------------------------------------------
f1 : sr ~ 1
f2 : sr ~ pop15
-- 2 models · Linear Regression ------------------------------------------------
f1 : <cld_exec>
f2 : <cld_exec>
Use display() to inspect individual results.
== ANOVA · F ===================================================================
-- ANOVA Table -----------------------------------------------------------------
───────────────────────────────────────────────────────────
model res_df deviance df dev_diff f_value p_value
───────────────────────────────────────────────────────────
1 30 278.322
2 30 447.674 0 -169.352
───────────────────────────────────────────────────────────
-- Summary ---------------------------------------------------------------------
─────────────────────────────────────────────────
pair estimate statistic df p_val
─────────────────────────────────────────────────
dist ~ speed 0.807 9.464 48 <0.001
─────────────────────────────────────────────────
-- Confidence Interval ---------------------------------------------------------
────────────────────────────────────
pair lower_95 upper_95
────────────────────────────────────
dist ~ speed 0.682 0.886
────────────────────────────────────
-- Model Definition ------------------------------------------------------------
Variable Mapper : my_id
Args : foo
Note : Unregistered <var_id> subclass (must define a `var_id_info()` method.)
-- Model Definition ------------------------------------------------------------
Variable Mapper : prop
Args : 45 / 100
Other info:
x : 45
n : 100
Variables :
x : <constant>
n : <constant>
-- Model Definition ------------------------------------------------------------
Variable Mapper : prop
Args : 45 / 100
-- Model Definition ------------------------------------------------------------
Variable Mapper : x_by
Args : extra | group
Other info:
x_vars : 1
by_vars : 1
Variables :
extra : <dbl [20]>
group : <fct [20]>
-- Model Definition ------------------------------------------------------------
Variable Mapper : x_by
Args : extra | group
-- Model Definition ------------------------------------------------------------
Variable Mapper : rel
Args : speed ; dist
-- Model Definition ------------------------------------------------------------
Variable Mapper : pairwise
Args : a, b, c
-- Model Definition ------------------------------------------------------------
Variable Mapper : on
Args : a, b
-- Model Definition ------------------------------------------------------------
Variable Mapper : on
Args : a, b
Variables :
a : <int [5]>
b : <int [5]>
-- Coefficients ----------------------------------------------------------------
──────────────┬───────────────────────────────────────────
term │ estimate std_error statistic p_value
──────────────┼───────────────────────────────────────────
(Intercept) │ 18.866 7.444 2.535 0.011
wt │ -8.083 3.069 -2.634 <0.001
hp │ 0.036 0.018 2.044 0.041
──────────────┴───────────────────────────────────────────
-- Model Fit -------------------------------------------------------------------
────────────────────────────────────────────────────────────────────────
family link null_deviance deviance df_residual aic n_obs
────────────────────────────────────────────────────────────────────────
binomial logit 43.230 10.059 29 16.059 32
────────────────────────────────────────────────────────────────────────
Saving _problems/test-infer-core-36.R
== Model =======================================================================
Variable Mapper : x_by
Args : extra | group
x_vars : 1
by_vars : 1
== T-Test ======================================================================
-- Summary ---------------------------------------------------------------------
──────────────────────────────────────────
group estimate t_stat df p_val
──────────────────────────────────────────
group -1.580 -1.861 17.780 0.079
──────────────────────────────────────────
-- Confidence Interval ---------------------------------------------------------
─────────────────────────────
group lower_95 upper_95
─────────────────────────────
group -3.365 0.206
─────────────────────────────
-- Model Definition ------------------------------------------------------------
Variable Mapper : x_by
Args : extra | group
-- Test Specification ----------------------------------------------------------
Test : T-Test
Method : default
-- Model Definition ------------------------------------------------------------
Variable Mapper : rel
Args : speed ; dist
-- Model Specification ---------------------------------------------------------
Model : Linear Regression
Method : default
Saving _problems/test-linearreg-pipeline-60.R
Saving _problems/test-linearreg-pipeline-67.R
== Model =======================================================================
Variable Mapper : rel
Args : speed ; dist
x_vars : 1
resp_vars : 1
== Linear Regression ===========================================================
-- Coefficients ----------------------------------------------------------------
──────────────┬───────────────────────────────────────────
term │ estimate std_error statistic p_value
──────────────┼───────────────────────────────────────────
(Intercept) │ -17.579 6.758 -2.601 0.012
speed │ 3.932 0.416 9.464 <0.001
──────────────┴───────────────────────────────────────────
-- Model Fit -------------------------------------------------------------------
------------------------------------------------------
R Squared : 0.65 F-statistic : 89.57
Adj. R Squared : 0.64 df1 : 1
Sigma : 15.38 df2 : 48
n : 50 p-value : <0.001
df (residual) : 48 :
------------------------------------------------------
-- Summary ---------------------------------------------------------------------
───────────────────────────────────────────────
x n true_p estimate statistic p_val
───────────────────────────────────────────────
45 100 0.500 0.450 45 0.368
───────────────────────────────────────────────
-- Confidence Interval ---------------------------------------------------------
──────────────────────
lower_95 upper_95
──────────────────────
0.350 0.553
──────────────────────
-- Summary ---------------------------------------------------------------------
──────────────────────────────────────────
term estimate true_mu t_stat p_val
──────────────────────────────────────────
var 1.500 0 2.100 0.050
──────────────────────────────────────────
-- Confidence Interval ---------------------------------------------------------
────────────────────────────
term lower_95 upper_95
────────────────────────────
var 0.100 2.900
────────────────────────────
-- Summary ---------------------------------------------------------------------
───────────────────────────────────────────
term estimate true_mu t_stat p_val
───────────────────────────────────────────
a 1.500 0 2.100 0.050
b 2.000 0 3.000 <0.001
c 0.800 0 1.200 0.240
───────────────────────────────────────────
-- Confidence Interval ---------------------------------------------------------
────────────────────────────
term lower_95 upper_95
────────────────────────────
a 0.100 2.900
b 0.500 3.500
c -0.300 1.900
────────────────────────────
┌────────────────────────────┐
| Layout for Pairwise Matrix |
├────────────────────────────┤
| < diff > |
| < t_stat > |
| < pval > |
| < ci > |
└────────────────────────────┘
Welch Two Sample t-test
────────────────────────────────────────────────────
Variable A B C
────────────────────────────────────────────────────
A
────────────────────────────────────────────────────
B 0.500
1.200
0.240
[-0.300 1.300]
────────────────────────────────────────────────────
C 1.000 0.500
2.300 1.100
0.030 0.280
[0.100 1.900] [-0.400 1.400]
────────────────────────────────────────────────────
┌────────────────────────────┐
| Layout for Pairwise Matrix |
├────────────────────────────┤
| < diff > |
| < t_stat > |
| < pval > |
| < ci > |
└────────────────────────────┘
One Sample t-test
────────────────────────────────────────────────────────────────
Variable A B C
────────────────────────────────────────────────────────────────
A 1.000
1.500
0.170
[-0.500 2.500]
────────────────────────────────────────────────────────────────
B 2.000
2.500
0.030
[0.200 3.800]
────────────────────────────────────────────────────────────────
C 3.000
3.500
<0.001
[1.100 4.900]
────────────────────────────────────────────────────────────────
== Model =======================================================================
Variable Mapper : formula
Args : extra ~ group
left_var : 1
right_var : 1
== T-Test ======================================================================
-- Summary ---------------------------------------------------------------------
───────────────────────────────────────────────────────
groups type est_type est t-stat pval
───────────────────────────────────────────────────────
group two sample mu_diff -1.580 -1.861 0.079
───────────────────────────────────────────────────────
-- Confidence Interval ---------------------------------------------------------
──────────────────────────────────────────
groups type lower_95 upper_95
──────────────────────────────────────────
group two sample -3.365 0.205
──────────────────────────────────────────
-- Summary ---------------------------------------------------------------------
────────────────────────────────────────────
term estimate true_mu t_stat p_val
────────────────────────────────────────────
extra 1.540 0 3.413 <0.001
────────────────────────────────────────────
-- Confidence Interval ---------------------------------------------------------
─────────────────────────────
term lower_95 upper_95
─────────────────────────────
extra 0.596 2.484
─────────────────────────────
-- Summary ---------------------------------------------------------------------
──────────────────────────────────────────
group estimate t_stat df p_val
──────────────────────────────────────────
group -1.580 -1.861 17.780 0.079
──────────────────────────────────────────
-- Confidence Interval ---------------------------------------------------------
─────────────────────────────
group lower_95 upper_95
─────────────────────────────
group -3.365 0.206
─────────────────────────────
┌────────────────────────────┐
| Layout for Pairwise Matrix |
├────────────────────────────┤
| < diff > |
| < t_stat > |
| < pval > |
| < ci > |
└────────────────────────────┘
Welch Two Sample t-test
─────────────────────────────────────────────────────────────────────────────────────
Variable Sepal.Length Petal.Length Petal.Width Sepal.Width
─────────────────────────────────────────────────────────────────────────────────────
Sepal.Length
─────────────────────────────────────────────────────────────────────────────────────
Petal.Length -2.085
-13.098
<0.001
[-2.399 -1.772]
─────────────────────────────────────────────────────────────────────────────────────
Petal.Width -4.644 2.559
-50.536 16.297
<0.001 <0.001
[-4.825 -4.463] [2.249 2.868]
─────────────────────────────────────────────────────────────────────────────────────
Sepal.Width 2.786 0.701 -1.858
36.463 4.719 -25.916
<0.001 <0.001 <0.001
[2.635 2.937] [0.408 0.994] [-1.999 -1.717]
─────────────────────────────────────────────────────────────────────────────────────
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 1194 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-infer-core.R:36:5'): get_model_type() extracts name from an instantiated S7 model ID ──
Error in `cls@name`: no applicable method for `@` applied to an object of class "S7_S3_class"
Backtrace:
▆
1. ├─testthat::expect_equal(get_model_type(extra ~ group), "formula") at test-infer-core.R:36:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─statim:::get_model_type(extra ~ group)
── Error ('test-linearreg-pipeline.R:60:5'): LINEAR_REG() eager via formula returns stat_infer_spec ──
Error in `cls@name`: no applicable method for `@` applied to an object of class "S7_S3_class"
Backtrace:
▆
1. └─statim::LINEAR_REG(dist ~ speed, cars) at test-linearreg-pipeline.R:60:5
2. └─statim:::build_stat(...)
3. └─statim:::run_stat(defs, args, cls, var_id, .data, .name)
4. ├─statim:::find_def(lookup, model_type = get_model_type(var_id))
5. │ └─lookup[[model_type]] %||% ...
6. └─statim:::get_model_type(var_id)
── Error ('test-linearreg-pipeline.R:67:5'): LINEAR_REG() eager via formula matches rel() result ──
Error in `cls@name`: no applicable method for `@` applied to an object of class "S7_S3_class"
Backtrace:
▆
1. └─statim::LINEAR_REG(dist ~ speed, cars) at test-linearreg-pipeline.R:67:5
2. └─statim:::build_stat(...)
3. └─statim:::run_stat(defs, args, cls, var_id, .data, .name)
4. ├─statim:::find_def(lookup, model_type = get_model_type(var_id))
5. │ └─lookup[[model_type]] %||% ...
6. └─statim:::get_model_type(var_id)
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 1194 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [3s] ERROR
Error(s) in re-building vignettes:
--- re-building 'statim.Rmd' using rmarkdown
Quitting from statim.Rmd:129-132 [unnamed-chunk-4]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `cls@name`:
! no applicable method for `@` applied to an object of class "S7_S3_class"
---
Backtrace:
▆
1. └─statim::LINEAR_REG(mpg ~ ., mtcars)
2. └─statim:::build_stat(...)
3. └─statim:::run_stat(defs, args, cls, var_id, .data, .name)
4. ├─statim:::find_def(lookup, model_type = get_model_type(var_id))
5. │ └─lookup[[model_type]] %||% ...
6. └─statim:::get_model_type(var_id)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'statim.Rmd' failed with diagnostics:
no applicable method for `@` applied to an object of class "S7_S3_class"
--- failed re-building 'statim.Rmd'
SUMMARY: processing the following file failed:
'statim.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [16s] OK
- DONE
Status: 2 ERRORs