- using R Under development (unstable) (2023-09-23 r85215)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 16.0.6 (15)
GNU Fortran (Debian 13.2.0-4) 13.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘bain/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘bain’ version ‘0.2.9’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘bain’ can be installed ... OK
See the install log for details.
- used C compiler: ‘Debian clang version 16.0.6 (15)’
- used Fortran compiler: ‘GNU Fortran (Debian 13.2.0-4) 13.2.0’
- checking package directory ... OK
- checking for future file timestamps ... 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/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 ... [16s/18s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] ERROR
Running examples in ‘bain-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: t_test
> ### Title: Student's t-test
> ### Aliases: t_test
> ### Keywords: htest
>
> ### ** Examples
>
> tmp <- t_test(extra ~ group, data = sleep)
> tmp$n
[1] 10 10
> tmp$v
[1] 3.200556 4.009000
> tmp2 <- t_test(extra ~ group, data = sleep)
> tmp2$n
[1] 10 10
> tmp2$v
[1] 3.200556 4.009000
> tmp <- t_test(extra ~ group, data = sleep, paired = TRUE)
Error in t.test.formula(formula = extra ~ group, data = sleep, paired = TRUE) :
cannot use 'paired' in formula method
Calls: t_test ... eval.parent -> eval -> eval -> t.test -> t.test.formula
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [230s/251s] ERROR
Running ‘testthat.R’ [229s/251s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> rm(list=ls())
> library(testthat)
> library(lavaan)
This is lavaan 0.6-16
lavaan is FREE software! Please report any bugs.
> library(bain)
> test_check("bain")
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 676 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (???): (code run outside of `test_that()`) ────────────────────────────
Error in `t.test.formula(formula = postnumb ~ sex, data = sesamesim, paired = FALSE,
var.equal = TRUE)`: cannot use 'paired' in formula method
Backtrace:
▆
1. ├─stats::t.test(...)
2. └─stats:::t.test.formula(...)
── Error (???): (code run outside of `test_that()`) ────────────────────────────
Error in `t.test.formula(formula = postnumb ~ sex, data = sesamesim, paired = FALSE,
var.equal = TRUE)`: cannot use 'paired' in formula method
Backtrace:
▆
1. ├─stats::t.test(...)
2. └─stats:::t.test.formula(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 676 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... [4s/4s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs