- using R Under development (unstable) (2026-04-22 r89950)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-16) 15.2.0
GNU Fortran (Debian 15.2.0-16) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-04-23 17:05:47 UTC
- checking for file ‘scrutr/DESCRIPTION’ ... OK
- this is package ‘scrutr’ version ‘0.3.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 whether package ‘scrutr’ 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/0s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/3s] ERROR
Running examples in ‘scrutr-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: detect_chars_structure_datasets
> ### Title: Detect character structure from datasets
> ### Aliases: detect_chars_structure_datasets
>
> ### ** Examples
>
> mydir <- system.file("detect_chars_structure_datasets", package = "scrutr")
>
> detect <- detect_chars_structure_datasets(
+ datasets_folderpath = mydir,
+ considered_extensions = "xlsx",
+ patterns = "(?i)college",
+ output_filepath = file.path(mydir, "detect_college.rds"),
+ get_output_in_session = TRUE)
Warning in gzfile(file, mode) :
cannot open compressed file '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/scrutr/detect_chars_structure_datasets/detect_college.rds', probable reason 'Read-only file system'
Error in gzfile(file, mode) : cannot open the connection
Calls: detect_chars_structure_datasets -> saveRDS -> gzfile
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [5s/9s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [5s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(scrutr)
>
> test_check("scrutr")
Attaching package: 'magrittr'
The following objects are masked from 'package:testthat':
equals, is_less_than, not
Converting: original_cars.rds
Done: original_cars.csv
Converting: original_mtcars.csv
Done: original_mtcars.csv
Converting: original_cars.rds
Done: converted_cars.csv
Converting: original_mtcars.csv
Done: converted_mtcars.rds
Converting: original_cars.rds
Done: converted_cars.csv
Saving _problems/test-detect_chars_structure_datasets-12.R
path_vector number_of_levels
1 a/b/c 3
2 d/e 2
Renamed: cars.rds -> cars_renamed.rds
Renamed: mtcars.rds -> mtcars_renamed.rds
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 189 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-detect_chars_structure_datasets.R:7:3'): Valid outputs are consistent ──
Error in `gzfile(file, mode)`: cannot open the connection
Backtrace:
▆
1. └─scrutr::detect_chars_structure_datasets(...) at test-detect_chars_structure_datasets.R:7:3
2. └─base::saveRDS(det_structure_list2, file = output_filepath)
3. └─base::gzfile(file, mode)
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 189 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s/3s] OK
- checking PDF version of manual ... [4s/7s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs