- using R Under development (unstable) (2025-12-19 r89206)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘midfieldr/DESCRIPTION’ ... OK
- this is package ‘midfieldr’ version ‘1.0.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/2s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘midfielddata’
- 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 whether package ‘midfieldr’ can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [4s/5s] OK
- checking Rd files ... [0s/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/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] ERROR
Running examples in ‘midfieldr-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: order_multiway
> ### Title: Order categorical variables of multiway data
> ### Aliases: order_multiway
>
> ### ** Examples
>
> # Subset of built-in data set
> dframe <- study_results[program == "EE" | program == "ME"]
> dframe[, people := paste(race, sex)]
> dframe[, c("race", "sex") := NULL]
> data.table::setcolorder(dframe, c("program", "people"))
>
> # Class before ordering
> class(dframe$program)
[1] "character"
> class(dframe$people)
[1] "character"
>
> # Class and levels after ordering
> mw1 <- order_multiway(dframe,
+ quantity = "stickiness",
+ categories = c("program", "people"))
Error in `[.data.table`(DT, , `:=`(program_median, f(stickiness, na.rm = TRUE)), :
attempt access index 5/5 in VECTOR_ELT
Calls: order_multiway ... order_by_function -> <Anonymous> -> eval -> eval -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/2s] ERROR
Running ‘tinytest.R’ [1s/2s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
> if (requireNamespace("tinytest", quietly = TRUE)){
+ tinytest::test_package("midfieldr")
+ }
test_add_completion_status.R.. 0 tests
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
test_add_completion_status.R.. 11 tests [0;32mOK [0m [0;34m0.2s [0m
test_add_data_sufficiency.R... 0 tests
test_add_data_sufficiency.R... 10 tests [0;32mOK [0m [0;34m0.3s [0m
test_add_timely_term.R........ 0 tests
test_add_timely_term.R........ 9 tests [0;32mOK [0m [0;34m0.3s [0m
test_filter_cip.R............. 0 tests
test_filter_cip.R............. 11 tests [0;32mOK [0m [0;34m0.1s [0m
test_order_multiway.R......... 0 tests Error in `[.data.table`(DT, , `:=`(catg1_median, f(a, na.rm = TRUE)), :
attempt access index 5/5 in VECTOR_ELT
Calls: <Anonymous> ... order_by_function -> <Anonymous> -> eval -> eval -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s/11s] OK
- checking PDF version of manual ... [5s/6s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs