Last updated on 2026-11-20 12:55:58 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.0 | 9.25 | 100.11 | 109.36 | OK | |
| r-devel-linux-x86_64-debian-gcc | 0.1.0 | 6.17 | 75.99 | 82.16 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.1.0 | 6.00 | 73.34 | 79.34 | ERROR | |
| r-devel-linux-x86_64-fedora-gcc | 0.1.0 | 6.00 | 75.86 | 81.86 | ERROR | |
| r-devel-windows-x86_64 | 0.1.0 | 14.00 | 146.00 | 160.00 | OK | |
| r-patched-linux-x86_64 | 0.1.0 | 11.31 | 92.27 | 103.58 | OK | |
| r-release-linux-x86_64 | 0.1.0 | 7.71 | 92.73 | 100.44 | OK | |
| r-release-macos-arm64 | 0.1.0 | 2.00 | 28.00 | 30.00 | OK | |
| r-release-macos-x86_64 | 0.1.0 | 6.00 | 98.00 | 104.00 | OK | |
| r-release-windows-x86_64 | 0.1.0 | 15.00 | 125.00 | 140.00 | OK | |
| r-oldrel-macos-arm64 | 0.1.0 | 2.00 | 32.00 | 34.00 | OK | |
| r-oldrel-macos-x86_64 | 0.1.0 | 6.00 | 185.00 | 191.00 | OK | |
| r-oldrel-windows-x86_64 | 0.1.0 | 15.00 | 155.00 | 170.00 | OK |
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [21s/26s]
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 -------------------------------------------------------------------
tput: No value for $TERM and no -T specified
------------------------------------------------------
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 1 | 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 1 | SKIP 0 | PASS 1194 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: re-building of vignette outputs
Result: 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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [22s/51s]
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
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.0
Check: re-building of vignette outputs
Result: 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
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [21s/45s]
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
Flavor: r-devel-linux-x86_64-fedora-gcc