Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [278s/515s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # tests/testthat.R
  > library(testthat)
  > library(visStatistics)
  > 
  > test_check("visStatistics")
  Object of class 'visstat'
  
  Available components:
  [1] "Kruskal Wallis rank sum test"                
  [2] "post-hoc by pairwise Wilcoxon rank sum test "
  [3] "effect_size"                                 
  Object of class 'visstat'
  
  Available components:
  [1] "Kruskal Wallis rank sum test"                
  [2] "post-hoc by pairwise Wilcoxon rank sum test "
  [3] "effect_size"                                 
  Object of class 'visstat'
  
  Available components:
  [1] "Kruskal Wallis rank sum test"                
  [2] "post-hoc by pairwise Wilcoxon rank sum test "
  [3] "effect_size"                                 
  Object of class 'visstat'
  
  Available components:
  [1] "Kruskal Wallis rank sum test"                
  [2] "post-hoc by pairwise Wilcoxon rank sum test "
  [3] "effect_size"                                 
  Object of class 'visstat'
  
  Available components:
  [1] "Kruskal Wallis rank sum test"                
  [2] "post-hoc by pairwise Wilcoxon rank sum test "
  [3] "effect_size"                                 
  Object of class 'visstat'
  
  Available components:
  [1] "Kruskal Wallis rank sum test"                
  [2] "post-hoc by pairwise Wilcoxon rank sum test "
  [3] "effect_size"                                 
  
  === Testing Optional Cairo Backends ===
  
  --- Testing tiff backend ---
  Creating tiff device...
  Plotting to tiff device...
  Closing tiff device...
  Expected file: /Volumes/Temp/tmp/RtmpTF6hZJ/format_test.tiff 
  SUCCESS: tiff file created with size 12940 bytes
  Cleaned up tiff file
  
  --- Testing svg backend ---
  Creating svg device...
  Plotting to svg device...
  Closing svg device...
  Expected file: /Volumes/Temp/tmp/RtmpTF6hZJ/format_test.svg 
  SUCCESS: svg file created with size 24212 bytes
  Cleaned up svg file
  
  --- Testing ps backend ---
  Creating ps device...
  Plotting to ps device...
  Closing ps device...
  Expected file: /Volumes/Temp/tmp/RtmpTF6hZJ/format_test.ps 
  SUCCESS: ps file created with size 33689 bytes
  Cleaned up ps file
  
  === Backend Test Summary ===
  WORKING backends: tiff, svg, ps 
  Loading required package: grid
  Plot [2] captured. Use plot(obj, which = 2) to display.
  Object of class 'visstat'
  
  Available components:
  NULL
  Summary of visstat object
  
  --- Named components ---
  NULL
  
  --- Contents ---
  Object of class 'visstat'
  p-value: 0.05 
  
  Available components:
  [1] "test"
  Summary of visstat object
  
  --- Named components ---
  [1] "test"
  
  --- Contents ---
  
  $test:
  $p.value
  [1] 0.05
  
  Object of class 'visstat'
  
  Available components:
  [1] "data"
  Summary of visstat object
  
  --- Named components ---
  [1] "data"
  
  --- Contents ---
  
  $data:
  [1] "some data"
  Object of class 'visstat'
  Test used: One-way ANOVA 
  p-value: 0.0234 
  
  Available components:
  [1] "test"        "assumptions" "effect_size"
  Summary of visstat object
  
  --- Named components ---
  [1] "test"        "assumptions" "effect_size"
  
  --- Contents ---
  
  $test:
  $method
  [1] "One-way ANOVA"
  
  $p.value
  [1] 0.0234
  
  $statistic
  [1] 4.567
  
  $data.name
  [1] "test data"
  
  
  $assumptions:
  $normality
  $normality$method
  [1] "Shapiro-Wilk"
  
  $normality$p.value
  [1] 0.123
  
  
  $homogeneity
  $homogeneity$method
  [1] "Levene's Test"
  
  $homogeneity$p.value
  [1] 0.456
  
  
  
  $effect_size:
  $name
  [1] "omega-squared"
  
  $estimate
  [1] 0.12
  
  $effect_size_method
  [1] "Omega-squared for one-way ANOVA"
  
  Plot [1] stored in /Volumes/Temp/tmp/RtmpTF6hZJ/glm_assumptions_numeric_x_factor_2_levels.png
  Plot [2] stored in /Volumes/Temp/tmp/RtmpTF6hZJ/ttest_numeric_x_factor_2_levels.png
  Plot [1] stored in /Volumes/Temp/tmp/RtmpTF6hZJ/glm_assumptions_custom_test.png
  Plot [2] stored in /Volumes/Temp/tmp/RtmpTF6hZJ/custom_test.png
  Object of class 'visstat'
  
  Available components:
  [1] "dependent variable (response)"    "independent variables (features)"
  [3] "t-test-statistics"                "Shapiro-Wilk-test_sample1"       
  [5] "Shapiro-Wilk-test_sample2"        "effect_size"                     
  Summary of visstat object
  
  --- Named components ---
  [1] "dependent variable (response)"    "independent variables (features)"
  [3] "t-test-statistics"                "Shapiro-Wilk-test_sample1"       
  [5] "Shapiro-Wilk-test_sample2"        "effect_size"                     
  
  --- Contents ---
  
  $dependent variable (response):
  [1] "numeric_x"
  
  $independent variables (features):
  [1] Group1 Group2
  Levels: Group1 Group2
  
  $t-test-statistics:
  
  	Two Sample t-test
  
  data:  x1 and x2
  t = 1.8931, df = 28, p-value = 0.06873
  alternative hypothesis: true difference in means is not equal to 0
  95 percent confidence interval:
   -0.1364339  3.4616123
  sample estimates:
  mean of x mean of y 
  10.968468  9.305879 
  
  
  $Shapiro-Wilk-test_sample1:
  
  	Shapiro-Wilk normality test
  
  data:  x
  W = 0.9564, p-value = 0.6302
  
  
  $Shapiro-Wilk-test_sample2:
  
  	Shapiro-Wilk normality test
  
  data:  x
  W = 0.95394, p-value = 0.5884
  
  
  $effect_size:
  $name
  [1] "Hedges' g"
  
  $estimate
  [1] 0.6725373
  
  $effect_size_method
  [1] "Hedges' g using pooled standard deviation"
  
  Plot [1] captured. Use plot(obj, which = 1) to display.
  Plot [2] captured. Use plot(obj, which = 2) to display.
  Object of class 'visstat'
  
  Available components:
  [1] "dependent variable (response)"    "independent variables (features)"
  [3] "t-test-statistics"                "Shapiro-Wilk-test_sample1"       
  [5] "Shapiro-Wilk-test_sample2"        "effect_size"                     
  Summary of visstat object
  
  --- Named components ---
  [1] "dependent variable (response)"    "independent variables (features)"
  [3] "t-test-statistics"                "Shapiro-Wilk-test_sample1"       
  [5] "Shapiro-Wilk-test_sample2"        "effect_size"                     
  
  --- Contents ---
  
  $dependent variable (response):
  [1] "numeric_x"
  
  $independent variables (features):
  [1] Group1 Group2
  Levels: Group1 Group2
  
  $t-test-statistics:
  
  	Two Sample t-test
  
  data:  x1 and x2
  t = 1.8931, df = 28, p-value = 0.06873
  alternative hypothesis: true difference in means is not equal to 0
  95 percent confidence interval:
   -0.1364339  3.4616123
  sample estimates:
  mean of x mean of y 
  10.968468  9.305879 
  
  
  $Shapiro-Wilk-test_sample1:
  
  	Shapiro-Wilk normality test
  
  data:  x
  W = 0.9564, p-value = 0.6302
  
  
  $Shapiro-Wilk-test_sample2:
  
  	Shapiro-Wilk normality test
  
  data:  x
  W = 0.95394, p-value = 0.5884
  
  
  $effect_size:
  $name
  [1] "Hedges' g"
  
  $estimate
  [1] 0.6725373
  
  $effect_size_method
  [1] "Hedges' g using pooled standard deviation"
  
  Plot [1] captured. Use plot(obj, which = 1) to display.
  Plot [2] captured. Use plot(obj, which = 2) to display.
  RECOMMENDATION: Consider exploring alternatives outside visstat() such as data transformations,
  generalised linear models, or robust regression. For a non-causal alternative
  consider rerunning with correlation = TRUE.
  RECOMMENDATION: Consider exploring alternatives outside visstat() such as data transformations,
  generalised linear models, or robust regression. For a non-causal alternative
  consider rerunning with correlation = TRUE.
  Saving _problems/test-visstat-750.R
  Saving _problems/test-visstat-759.R
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 568 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-test_and_visuals.R:449:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-visstat.R:750:5'): correlation request is only valid for rank-correlation routes ──
  Expected `case$method(caught$value)` to match regexp "Wilcoxon rank sum exact test".
  Actual text:
  x | Wilcoxon rank sum test with continuity correction
  ── Failure ('test-visstat.R:756:7'): correlation request is only valid for rank-correlation routes ──
  Expected `any(...)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 568 ]
  Error:
  ! Test failures.
  Execution halted