Running 'testthat.R' [26s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(envnames)
  > 
  > test_check("envnames")
  
  Environments involved:
  Current environment: <environment: R_GlobalEnv>
  Parent environment of env1: <environment: R_GlobalEnv>
  Parent environment of env2: <environment: R_GlobalEnv>
  Parent environment of env11: <environment: 0x000001b96322add0>
  correct memory address: <000001B967270948> 
  observed result: TRUE 
  Now inside function g 
  Environment name of calling function (using environmentName() function):  ""
  Environment name of calling function as returned by get_fun_calling(): env1$f
  Now inside function g 
  Environment name of calling function (using environmentName() function):  ""
  Environment name of calling function as returned by get_fun_calling(): testenv$f
  Now inside function g 
  Environment name of calling function (using environmentName() function):  ""
  Environment name of calling function as returned by get_fun_calling(): f
  [ FAIL 5 | WARN 20 | SKIP 6 | PASS 273 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  • This test fails on CRAN (1)
  • This test gives different results when running in TEST mode and when running in CHECK mode, and it fails when testing the package in https://win-builder.r-project.org/ which is the real test before package submission to CRAN. (1)
  • no longer true: we now return always NULL for strings (1)
  • the is_memory_address() function was changed to accept any number of digits between 8 and 16, (1)
  • this cannot be tested because the call is inside function test_that()! (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-environment_name.r:12:1'): (code run outside of `test_that()`) ──
  Error in `get_env_names()`: object 'user_environments_recursive' not found
  Backtrace:
      ▆
   1. ├─base::with(...) at test-environment_name.r:12:0
   2. ├─base::with.default(...)
   3. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
   4. │   └─base::eval(substitute(expr), data, enclos = parent.frame())
   5. └─envnames::get_env_names() at test-environment_name.r:96:0
   6.   └─base::data.frame(...)
  ── Error ('test-get_env_names.r:21:3'): T0a) the table returned only contains system/package environments AND the empty environment
            when no user environments are defined, except for the user environments defined in the envnames package ──
  Error in `get_env_names()`: object 'user_environments_recursive' not found
  Backtrace:
      ▆
   1. └─envnames::get_env_names() at test-get_env_names.r:21:2
   2.   └─base::data.frame(...)
  ── Error ('test-get_env_names.r:151:3'): T1) the default behaviour is the expected one, i.e. all environments (user and packages)
             in the whole workspace are retrieved.
             User-defined environments are found in both the global environment and packages.
             The search is recursive on all user-defined environments found.
             This is the default behaviour and should be obtained when envir=NULL.
             Note that we do NOT compare the info about function execution environments
             because the expected value for is too complicated to write. ──
  Error in `get_env_names()`: object 'user_environments_recursive' not found
  Backtrace:
      ▆
   1. └─envnames::get_env_names() at test-get_env_names.r:151:2
   2.   └─base::data.frame(...)
  ── Error ('test-get_obj_address.r:46:3'): T1) addresses of objects referenced through an environment (e.g. env1$x) are correctly returned ──
  Error in `get_env_names(envir = NULL)`: object 'user_environments_recursive' not found
  Backtrace:
      ▆
   1. └─envnames::get_obj_address(env1$x) at test-get_obj_address.r:46:2
   2.   └─envnames::obj_find(...)
   3.     └─envnames::get_env_names(envir = NULL)
   4.       └─base::data.frame(...)
  ── Error ('test-get_obj_address.r:54:3'): T2) addresses of packages are correctly returned ──
  Error in `get_env_names(envir = NULL)`: object 'user_environments_recursive' not found
  Backtrace:
      ▆
   1. └─base::sapply(globalenv()$packages, FUN = get_obj_address) at test-get_obj_address.r:54:2
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─envnames (local) FUN(X[[i]], ...)
   4.       └─envnames::obj_find(...)
   5.         └─envnames::get_env_names(envir = NULL)
   6.           └─base::data.frame(...)
  
  [ FAIL 5 | WARN 20 | SKIP 6 | PASS 273 ]
  Error: Test failures
  Execution halted