Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(BootstrapQTL)
  Loading required package: MatrixEQTL
  > 
  > test_check("BootstrapQTL")
  Registering 2 cores for bootstrap procedure.
  Mapping QTLs and obtaining nominal effect size estimates...
  Optimising data for bootstrap procedure...
  Running bootstrap procedure for 10 bootstraps on 2 cores.
  Removing winner's curse...
  Restoring global environment...
  Done!
  Restoring global environment...
  == Warnings ====================================================================
  -- Warning (test.R:47:3): Run BootstrapQTL -------------------------------------
  already exporting variable(s): cvrt, snps_boot, gene_boot, snpspos, genepos, bootstrap_file_directory, sig_pairs, tests_per_gene, local_correction, eSNP_threshold, errorCovariance, cisDist, useModel
  Backtrace:
   1. BootstrapQTL::BootstrapQTL(...) test.R:47:2
   2. `%dopar%`(...)
   3. e$fun(obj, substitute(ex), parent.frame(), e$data)
  -- Warning (test.R:47:3): Run BootstrapQTL -------------------------------------
  3/10 bootstraps failed with error 'The number of covariates exceeds the number of samples.
  Linear regression can not be fit.' in the bootstrap estimation group.
  Backtrace:
   1. BootstrapQTL::BootstrapQTL(...) test.R:47:2
  -- Warning (test.R:53:3): Run BootstrapQTL -------------------------------------
  cannot open file 'D:\temp\RtmpkxpL5U\file1a700795b683e': No such file or directory
  Backtrace:
   1. BootstrapQTL::BootstrapQTL(...) test.R:53:2
   2. BootstrapQTL:::setupParallel(n_cores, verbose = TRUE, reporterCore = FALSE)
   3. parallel::makeCluster(nCores, type = "PSOCK")
   4. parallel::makePSOCKcluster(names = spec, ...)
   5. base::system(cmd, wait = FALSE, input = "")
   6. base::writeLines(input, f)
   7. base::file(con, "w")
  
  == Failed tests ================================================================
  -- Error (test.R:53:3): Run BootstrapQTL ---------------------------------------
  Error: cannot open the connection
  Backtrace:
      x
   1. \-BootstrapQTL::BootstrapQTL(...) test.R:53:2
   2.   \-BootstrapQTL:::setupParallel(n_cores, verbose = TRUE, reporterCore = FALSE)
   3.     \-parallel::makeCluster(nCores, type = "PSOCK")
   4.       \-parallel::makePSOCKcluster(names = spec, ...)
   5.         \-base::system(cmd, wait = FALSE, input = "")
   6.           \-base::writeLines(input, f)
   7.             \-base::file(con, "w")
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted