Running 'runit.R'
Running the tests in 'tests/runit.R' failed.
Complete output:
  > #!/usr/bin/Rscript --vanilla
  > is_failure <- function(result) {
  +     res <- RUnit::getErrors(result)
  +     names(res) <- tolower(names(res)) # soothe lintr
  +     sum_of_exceptions <- res[["nerr"]] + res[["nfail"]]
  +     fail <- as.logical(sum_of_exceptions)
  +     return(fail)
  + }
  > 
  > if (interactive()) {
  +     pkgload::load_all(path = ".") # needed to use pkgload's shim version of
  +     # base's system.file
  +     unit_dir <- system.file("inst", "runit_tests", package = "maSAE")
  + } else {
  +     require("maSAE", quietly = TRUE, character.only = TRUE) ||
  +         pkgload::load_all(path = ".") # needed to use pkgload's shim version of
  +     r_call <- commandArgs(trailingOnly = FALSE)
  +     if (any(grepl("--file", r_call))) {
  +         unit_dir <- file.path("inst", "runit_tests")
  +     } else {
  +         unit_dir <- system.file("runit_tests", package = "maSAE")
  +     }
  + }
  
  Attaching package: 'maSAE'
  
  The following object is masked from 'package:stats':
  
      predict
  
  > if (! dir.exists(unit_dir)) {
  +     stop("Can not find RUnit test directory ", unit_dir,
  +          ". Try to (re)install the package first.")
  + }
  > setup_file <- file.path(unit_dir, "setup.R")
  > if (file.exists(setup_file)) source(setup_file)
  > package_suite <- RUnit::defineTestSuite("maSAE_unit_test",
  +                                         dirs = unit_dir,
  +                                         testFileRegexp = "^runit.*\\.[rR]",
  +                                         testFuncRegexp = "^test_+")
  > test_result <- RUnit::runTestSuite(package_suite)
  Tests for the clustered two-phase design
  
  
  Executing test function test_ex_noweights  ... Tests for exhaustive auxiliary data without weights
  include is NULL, automatically adding it as TRUE to data.
   done successfully.
  
  
  
  Executing test function test_ex_weights  ... Tests for exhaustive auxiliary data with weights
  include is NULL, automatically adding it as TRUE to data.
  Error in h(simpleError(msg, call)) : 
    error in evaluating the argument 'object' in selecting a method for function 'predict': invalid class "saeObj" object: s2 indicator s2 not found in data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
   done successfully.
  
  
  
  Executing test function test_nonex_noweights  ... Tests for non-exhaustive auxiliary data without weights
   done successfully.
  
  
  
  Executing test function test_partially  ... include is NULL, automatically adding it as TRUE to data.
   done successfully.
  
  Tests for the clustered three-phase design
  Error in loadNamespace(x) : there is no package called 'forestinventory'
  #% Tests against forestinventory
  ##% Tests for using zberg
  Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  #% Tests against forestinventory
  ##% Tests for clustered sampling using s1, s2
  
  
  Executing test function test_clustered_unweighted  ... include is NULL, automatically adding it as TRUE to data.
  Timing stopped at: 0.07 0 0.06
  Error in loadNamespace(x) : there is no package called 'forestinventory'
   done successfully.
  
  Tests for the clustered two-phase design
  Error in library("forestinventory") : 
    there is no package called 'forestinventory'
  Tests for using lm
  
  
  Executing test function test_lm_clustered  ... include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
   done successfully.
  
  
  
  Executing test function test_lm_unclustered  ...  done successfully.
  
  Tests for using lm
  
  
  Executing test function test_means  ...  done successfully.
  
  
  
  Executing test function test_exception  ... Error in eval(expr, envir = parent.frame()) : Hello, error!
  In addition: Warning message:
  In validityMethod(object) :
    Got both all true means and auxiliary weights. Will ignore the latter.
   done successfully.
  
  Tests for the unclustered two-phase design
  Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  Tests for the unclustered three-phase design
  Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  Ensure 1.0.0 and 2.0.0 give same predictions and variances
  
  
  Executing test function test_lm_clustered  ... include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
  include is NULL, automatically adding it as TRUE to data.
   done successfully.
  
  
  
  Executing test function test_lm_unclustered  ...  done successfully.
  
  > RUnit::printTextProtocol(test_result, showDetails = TRUE, fileName = "")
  RUNIT TEST PROTOCOL -- Wed Aug  4 23:56:44 2021 
  *********************************************** 
  Number of test functions: 16 
  Number of errors: 6 
  Number of failures: 0 
  
   
  1 Test Suite : 
  maSAE_unit_test - 16 test functions, 6 errors, 0 failures
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R : Error in loadNamespace(x) : there is no package called 'forestinventory'
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  ERROR in test_clustered_unweighted: Error in loadNamespace(x) : there is no package called 'forestinventory'
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R : Error in library("forestinventory") : 
    there is no package called 'forestinventory'
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  
  
  
  Details 
  *************************** 
  Test Suite: maSAE_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^runit.*\.[rR] 
  Involved directory: 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests 
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_2p.R 
  test_ex_noweights: (3 checks) ... OK (0.25 seconds)
  test_ex_weights: (2 checks) ... OK (0.11 seconds)
  test_nonex_noweights: (3 checks) ... OK (0.06 seconds)
  test_partially: (1 checks) ... OK (0.1 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R : Error in loadNamespace(x) : there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_maSAE.R 
  test_clustered_unweighted: ERROR !! 
  Error in loadNamespace(x) : there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R : Error in library("forestinventory") : 
    there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-lm.R 
  test_lm_clustered: (8 checks) ... OK (2.91 seconds)
  test_lm_unclustered: (8 checks) ... OK (0.72 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-means.R 
  test_means: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-throw.R 
  test_exception: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-v1.R 
  test_lm_clustered: (4 checks) ... OK (2.27 seconds)
  test_lm_unclustered: (4 checks) ... OK (1.06 seconds)
  > if (is_failure(test_result)) {
  +     RUnit::printTextProtocol(test_result, showDetails = TRUE)
  +     stop("RUnit failed.")
  + }
  RUNIT TEST PROTOCOL -- Wed Aug  4 23:56:44 2021 
  *********************************************** 
  Number of test functions: 16 
  Number of errors: 6 
  Number of failures: 0 
  
   
  1 Test Suite : 
  maSAE_unit_test - 16 test functions, 6 errors, 0 failures
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R : Error in loadNamespace(x) : there is no package called 'forestinventory'
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  ERROR in test_clustered_unweighted: Error in loadNamespace(x) : there is no package called 'forestinventory'
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R : Error in library("forestinventory") : 
    there is no package called 'forestinventory'
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  ERROR in C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R: Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  
  
  
  Details 
  *************************** 
  Test Suite: maSAE_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^runit.*\.[rR] 
  Involved directory: 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests 
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_2p.R 
  test_ex_noweights: (3 checks) ... OK (0.25 seconds)
  test_ex_weights: (2 checks) ... OK (0.11 seconds)
  test_nonex_noweights: (3 checks) ... OK (0.06 seconds)
  test_partially: (1 checks) ... OK (0.1 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-cl_3p.R : Error in loadNamespace(x) : there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_maSAE.R 
  test_clustered_unweighted: ERROR !! 
  Error in loadNamespace(x) : there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-forestinventory_partially.R : Error in library("forestinventory") : 
    there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-lm.R 
  test_lm_clustered: (8 checks) ... OK (2.91 seconds)
  test_lm_unclustered: (8 checks) ... OK (0.72 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-means.R 
  test_means: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-throw.R 
  test_exception: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_2p.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R: ERROR !! 
  Error while sourcing  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-uc_3p.R : Error in find.package(package, lib.loc, verbose = verbose) : 
    there is no package called 'forestinventory'
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/maSAE/maSAE.Rcheck/maSAE/runit_tests/runit-v1.R 
  test_lm_clustered: (4 checks) ... OK (2.27 seconds)
  test_lm_unclustered: (4 checks) ... OK (1.06 seconds)
  Error: RUnit failed.
  Execution halted