Running ‘testthat.R’ [20s/25s]
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: 0x5621e1466a08>
  R_GlobalEnv env_of_envs       envir 
       "env2"      "env2"      "env2" 
  correct memory address: <0x5621e49ad0f8> 
  observed result: TRUE 
  Saving _problems/test-get_env_names-25.R
  Saving _problems/test-get_env_names-158.R
  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 2 | WARN 10 | SKIP 8 | PASS 308 ]
  
  ══ Skipped tests (8) ═══════════════════════════════════════════════════════════
  • 2018/10/10: This test works fine if run OUTSIDE the test_that() call, (1):
    'test-environment_name.r:211:3'
  • On CRAN (1): 'test-obj_find.r:364:3'
  • This gives 'node stack overflow' error in 32-bit platform... apparently
    meaning that there is a recursive call that does not end... (1):
    'test-environment_name.r:167:3'
  • This test fails on CRAN (1): 'test-get_obj_address.r:214:3'
  • 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): 'test-get_obj_address.r:59:3'
  • no longer true: we now return always NULL for strings (1):
    'test-get_obj_address.r:267:3'
  • the is_memory_address() function was changed to accept any number of digits
    between 8 and 16, (1): 'test-functions.r:148:3'
  • this cannot be tested because the call is inside function test_that()! (1):
    'test-get_fun_calling_chain.r:58:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_env_names.r:25: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 ──
  Expected `observed` to equal `expected`.
  Differences:
  Lengths differ: 22 is not 21
  ── Failure ('test-get_env_names.r:158:5'): 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. ──
  Expected `observed` to equal `expected_check`.
  Differences:
  Attributes: < Component "row.names": Numeric: lengths (29, 28) differ >
  Component "type": Lengths (29, 28) differ (string compare on first 28)
  Component "type": 3 string mismatches
  Component "location": Lengths (29, 28) differ (string compare on first 28)
  Component "location": 'is.NA' value mismatch: 21 in current 20 in target
  Component "locationaddress": Lengths (29, 28) differ (string compare on first 28)
  Component "locationaddress": 'is.NA' value mismatch: 21 in current 20 in target
  Component "address": Lengths (29, 28) differ (string compare on first 28)
  Component "address": 21 string mismatches
  ...
  
  [ FAIL 2 | WARN 10 | SKIP 8 | PASS 308 ]
  Error:
  ! Test failures.
  Execution halted