- 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 ‘strvalidator/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘strvalidator’ version ‘2.4.2’
- 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 serialization versions ... OK
- checking whether package ‘strvalidator’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [3s/4s] OK
- checking whether the package can be loaded with stated dependencies ... [3s/3s] OK
- checking whether the package can be unloaded cleanly ... [3s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/4s] OK
- checking loading without being on the library search path ... [3s/4s] OK
- checking whether startup messages can be suppressed ... [3s/4s] 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 ... [94s/127s] 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 data for ASCII and uncompressed saves ... OK
- checking examples ... [5s/6s] ERROR
Running examples in ‘strvalidator-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: calculateHb
> ### Title: Calculate Heterozygote Balance
> ### Aliases: calculateHb
>
> ### ** Examples
>
> data(ref2)
> data(set2)
> # Calculate average balances.
> calculateHb(data = set2, ref = ref2)
'kit' not provided. Attempting auto detection.
Detected kit(s): SGMPlus
Extracting known alleles from dataset...
Using 'fast' allele filtering method.
This method discards NA alleles/loci/samples.
1 "NA" in 'Allele' converted to NA
Removed 1 rows where Allele=<NA>
Estimating size of alleles...
Error in `[.data.table`(DT, !is.na(Height), `:=`(Peaks, .N), list(Sample.Name, :
attempt access index 6/6 in VECTOR_ELT
Calls: calculateHb -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [37s/47s] ERROR
Running ‘testthat.R’ [36s/47s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> ################################################################################
> # TODO LIST
> # TODO: Add test for calculateResultType and other functions.
>
> ################################################################################
> # CHANGE LOG
> # 24.12.2014: Second try, update to thestthat 0.8.1
> # 05.12.2013: Updated to thestthat 0.8
>
>
> # Load testthat package.
> library(testthat)
>
> # Run all tests.
> test_check(package = "strvalidator")
Loading required package: strvalidator
STR-validator 2.4.2 loaded!
Saving _problems/test-calculateAllT-51.R
Saving _problems/test-calculateHb-53.R
Saving _problems/test-calculateHeight-214.R
Saving _problems/test-calculateLb-38.R
Saving _problems/test-calculateStatistics-38.R
[ FAIL 5 | WARN 1 | SKIP 0 | PASS 3576 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-calculateAllT.r:46:3'): calculateAllT ──────────────────────────
Error in ``[.data.table`(DT, , `:=`(Observed, length(unique(Allele))), by = list(Sample.Name, Marker))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-calculateAllT.r:46:3
2. │ └─base::withCallingHandlers(...)
3. └─strvalidator::calculateHeight(...)
4. └─strvalidator::calculateCopies(data = ref)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-calculateHb.r:53:3'): calculateHb ──────────────────────────────
Error in ``[.data.table`(DT, !is.na(Height), `:=`(Peaks, .N), list(Sample.Name, Marker))`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. └─strvalidator::calculateHb(...) at test-calculateHb.r:53:3
2. ├─DT[!is.na(Height), `:=`(Peaks, .N), list(Sample.Name, Marker)]
3. └─data.table:::`[.data.table`(...)
── Error ('test-calculateHeight.r:214:3'): calculateHeight ─────────────────────
Error in ``[.data.table`(DT, , `:=`(Peaks, sum(!is.na(Height))), by = list(Sample.Name))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─strvalidator::calculateHeight(...) at test-calculateHeight.r:214:3
2. ├─DT[, `:=`(Peaks, sum(!is.na(Height))), by = list(Sample.Name)]
3. └─data.table:::`[.data.table`(...)
── Error ('test-calculateLb.r:34:3'): calculateLb ──────────────────────────────
Error in ``[.data.table`(res, , `:=`(Lb, TPH/TPPH), by = list(Sample.Name, Dye, Marker))`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. └─strvalidator::calculateLb(...) at test-calculateLb.r:34:3
2. ├─res[, `:=`(Lb, TPH/TPPH), by = list(Sample.Name, Dye, Marker)]
3. └─data.table:::`[.data.table`(...)
── Error ('test-calculateStatistics.r:38:3'): calculateStatistics ──────────────
Error in ``[.data.table`(DT, !is.na(Height), `:=`(Peaks, .N), list(Sample.Name, Marker))`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─strvalidator::calculateHb(...) at test-calculateStatistics.r:38:3
2. ├─DT[!is.na(Height), `:=`(Peaks, .N), list(Sample.Name, Marker)]
3. └─data.table:::`[.data.table`(...)
[ FAIL 5 | WARN 1 | SKIP 0 | PASS 3576 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [7s/8s] OK
- checking HTML version of manual ... [6s/9s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs