- using R Under development (unstable) (2025-12-18 r89199)
- 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 ‘BootstrapQTL/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘BootstrapQTL’ version ‘1.0.5’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [0s/1s] NOTE
Maintainer: ‘Scott Ritchie <sritchie73@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = c("Qin", "Qin"),
family = "Huang",
role = "aut"),
person(given = "Scott",
family = "Ritchie",
role = c("aut", "cre"),
email = "sritchie73@gmail.com"))
as necessary.
- 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 ‘BootstrapQTL’ 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 ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] 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/6s] 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 examples ... [1s/1s] ERROR
Running examples in ‘BootstrapQTL-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: BootstrapQTL
> ### Title: Bootstrap QTL analysis for accurate effect size estimation
> ### Aliases: BootstrapQTL
>
> ### ** Examples
>
> # Locations for example data from the MatrixEQTL package
> base.dir = find.package('MatrixEQTL');
> SNP_file_name = paste(base.dir, "/data/SNP.txt", sep="");
> snps_location_file_name = paste(base.dir, "/data/snpsloc.txt", sep="");
> expression_file_name = paste(base.dir, "/data/GE.txt", sep="");
> gene_location_file_name = paste(base.dir, "/data/geneloc.txt", sep="");
> covariates_file_name = paste(base.dir, "/data/Covariates.txt", sep="");
>
> # Load the SNP data
> snps = SlicedData$new();
> snps$fileDelimiter = "\t"; # the TAB character
> snps$fileOmitCharacters = "NA"; # denote missing values;
> snps$fileSkipRows = 1; # one row of column labels
> snps$fileSkipColumns = 1; # one column of row labels
> snps$fileSliceSize = 2000; # read file in slices of 2,000 rows
> snps$LoadFile(SNP_file_name);
Rows read: 15 done.
>
> # Load the data detailing the position of each SNP
> snpspos = read.table(snps_location_file_name, header = TRUE, stringsAsFactors = FALSE);
>
> # Load the gene expression data
> gene = SlicedData$new();
> gene$fileDelimiter = "\t"; # the TAB character
> gene$fileOmitCharacters = "NA"; # denote missing values;
> gene$fileSkipRows = 1; # one row of column labels
> gene$fileSkipColumns = 1; # one column of row labels
> gene$fileSliceSize = 2000; # read file in slices of 2,000 rows
> gene$LoadFile(expression_file_name);
Rows read: 10 done.
>
> # Load the data detailing the position of each gene
> genepos = read.table(gene_location_file_name, header = TRUE, stringsAsFactors = FALSE);
>
> # Load the covariates data
> cvrt = SlicedData$new();
> cvrt$fileDelimiter = "\t"; # the TAB character
> cvrt$fileOmitCharacters = "NA"; # denote missing values;
> cvrt$fileSkipRows = 1; # one row of column labels
> cvrt$fileSkipColumns = 1; # one column of row labels
> if(length(covariates_file_name)>0) {
+ cvrt$LoadFile(covariates_file_name);
+ }
Rows read: 2 done.
>
> # Run the BootstrapQTL analysis
> eQTLs <- BootstrapQTL(snps, gene, snpspos, genepos, cvrt, n_bootstraps=10, n_cores=2)
Registering 2 cores for bootstrap procedure.
Mapping QTLs and obtaining nominal effect size estimates...
10 of 10 genes matched
15 of 15 SNPs matched
100.00% done, 100 cis-eQTLs
Error in `[.data.table`(cis_assocs, , `:=`(local_pval, adjust_p(pvalue, :
attempt access index 6/6 in VECTOR_ELT
Calls: BootstrapQTL -> hierarchical_correction -> [ -> [.data.table
Restoring global environment...
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/3s] ERROR
Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(BootstrapQTL)
Loading required package: MatrixEQTL
>
> test_check("BootstrapQTL")
Mapping QTLs and obtaining nominal effect size estimates...
Saving _problems/test-50.R
Restoring global environment...
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.R:48:5'): Run BootstrapQTL ─────────────────────────────────────
Error in ``[.data.table`(cis_assocs, , `:=`(local_pval, adjust_p(pvalue, method = local)), by = gene)`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. ├─base::tryCatch(...) at test.R:47:3
2. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
3. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
4. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
5. └─BootstrapQTL::BootstrapQTL(...) at test.R:48:5
6. └─BootstrapQTL:::hierarchical_correction(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [3s/6s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE