Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(bigKRLS)
  Loading required package: bigmemory
  
  
  bigKRLS is authored by Pete Mohanty (Stanford University) and Robert Shaffer (University of Pennsylvania) under License GPL 3.
  
  To get started, check out vignette("bigKRLS_basics").
  
  If you use this package in your research, kindly cite:
  
  
  Pete Mohanty and Robert Shaffer. 2018. 'Messy Data, Robust Inference? Navigating Obstacles to Inference with bigKRLS.' Political Analysis. Cambridge University Press. DOI=10.1017/pan.2018.33. pages 1-18.
  > 
  > # have to disable R_TESTS environment variable or parallel::makePSOCKcluster hangs.
  > Sys.setenv("R_TESTS" = "")
  > 
  > 
  > test_check("bigKRLS")
  -- 1. Error: Simple example works (@test_basic_usage.R#41)  --------------------
  memory could not be allocated for instance of type big.matrix
  1: bigKRLS(y = y, X = X, eigtrunc = 0, Ncores = 1) at testthat/test_basic_usage.R:41
  2: bGaussKernel(X, sigma)
  3: big.matrix(nrow = nrow(X), ncol = nrow(X), init = 0)
  4: stop(paste("Error: memory could not be allocated for instance", "of type big.matrix"))
  
  
  model estimates will be saved to:
  
   bigKRLS_test_bigmemory_results 
  
  -- 2. Error: bigmemory example works (@test_basic_usage.R#105)  ----------------
  memory could not be allocated for instance of type big.matrix
  1: bigKRLS(y = as.big.matrix(y), X = as.big.matrix(X), Neig = nrow(X), Ncores = 1, model_subfolder_name = model_subfolder, 
         overwrite.existing = TRUE) at testthat/test_basic_usage.R:105
  2: stopifnot(is.matrix(X) | is.big.matrix(X))
  3: as.big.matrix(X)
  4: as.big.matrix(X)
  5: big.matrix(nrow = nrow(x), ncol = ncol(x), type = type, init = NULL, dimnames = dimnames(x), 
         separated = separated, backingfile = backingfile, backingpath = backingpath, 
         descriptorfile = descriptorfile, binarydescriptor = binarydescriptor, shared = shared)
  6: stop(paste("Error: memory could not be allocated for instance", "of type big.matrix"))
  
  == testthat results  ===========================================================
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: Simple example works (@test_basic_usage.R#41) 
  2. Error: bigmemory example works (@test_basic_usage.R#105) 
  
  Error: testthat unit tests failed
  Execution halted