Running 'testthat.R' [39s/43s]
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: 0x26e3168>
  R_GlobalEnv env_of_envs       envir 
       "env2"      "env2"      "env2" 
  -- Skip (test-environment_name.r:167:3): T7) the environment name of an object g
  Reason: This gives 'node stack overflow' error in 32-bit platform... apparently meaning that there is a recursive call that does not end...
  
  -- Skip (test-environment_name.r:211:3): T21) the name of an environment defined
  Reason: 2018/10/10: This test works fine if run OUTSIDE the test_that() call,
         but o.w. it does not work, as we get the error 'invalid 'envir' argument'
         in line 'exists(obj_name, envir=env, inherits=FALSE) in function obj_find() line 259.
         I don't understand why because variable env IS an environment at that line.
         It's a function environment in the testthat namespace as shown by the output '<environment: namespace:testthat>'
         generated by the following lines placed in obj_find() before line 259:
         print(env)
         cat(class(env1))
         
  
  -- Warning (test-functions.r:71:3): T15) check_object_exists(): objects defined 
  is.na() applied to non-(list or vector) of type 'closure'
  
  correct memory address: <0x5ba06d8> 
  observed result: TRUE 
  -- Skip (test-functions.r:148:3): T23) is_memory_address(): invalid memory addre
  Reason: the is_memory_address() function was changed to accept any number of digits between 8 and 16,
         since in Ubuntu Debian memory addresses have 12 digits!
  
  -- Skip (test-get_fun_calling_chain.r:58:3): T0) the function returns NULL when 
  Reason: this cannot be tested because the call is inside function test_that()!
  
  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
  -- Skip (test-get_obj_address.r:59:3): T4) the address of an object is correctly
  Reason: 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.
  
  -- Skip (test-get_obj_address.r:214:3): T20) that promise errors happen... altho
  Reason: This test fails on CRAN
  
  -- Skip (test-get_obj_address.r:267:3): T3OLD) the address of an object passed a
  Reason: no longer true: we now return always NULL for strings
  
  -- Warning (test-obj_find.r:288:3): T10b) when obj_find() is called from within 
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- Warning (test-obj_find.r:331:3): T11) objects given with a full environment p
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- Warning (test-obj_find.r:333:3): T11) objects given with a full environment p
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- Warning (test-obj_find.r:337:3): T11) objects given with a full environment p
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- Warning (test-obj_find.r:339:3): T11) objects given with a full environment p
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- Warning (test-obj_find.r:345:3): T11) objects given with a full environment p
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- Warning (test-obj_find.r:347:3): T11) objects given with a full environment p
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- Warning (test-obj_find.r:353:3): T11) objects given with a full environment p
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- Warning (test-obj_find.r:355:3): T11) objects given with a full environment p
  is.na() applied to non-(list or vector) of type 'closure'
  
  -- ERROR (test-obj_find.r:411:9): T21) specifying include_functions=TRUE returns
  Error: The test did NOT pass in any of its forms.
  
  -- Skipped tests  --------------------------------------------------------------
  * 2018/10/10: This test works fine if run OUTSIDE the test_that() call,
         but o.w. it does not work, as we get the error 'invalid 'envir' argument'
         in line 'exists(obj_name, envir=env, inherits=FALSE) in function obj_find() line 259.
         I don't understand why because variable env IS an environment at that line.
         It's a function environment in the testthat namespace as shown by the output '<environment: namespace:testthat>'
         generated by the following lines placed in obj_find() before line 259:
         print(env)
         cat(class(env1))
          (1)
  * This gives 'node stack overflow' error in 32-bit platform... apparently meaning that there is a recursive call that does not end... (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,
         since in Ubuntu Debian memory addresses have 12 digits! (1)
  * this cannot be tested because the call is inside function test_that()! (1)
  
  == testthat results  ===========================================================
  Warning (test-functions.r:71:3): T15) check_object_exists(): objects defined in a package are found and their memory address is the one returned by the address() function
  Warning (test-obj_find.r:288:3): T10b) when obj_find() is called from within an environment but the object to search for is given
            with an absolute path to the actual object as in globalenv()$env1$x, the object is found
  Warning (test-obj_find.r:331:3): T11) objects given with a full environment path involving globalenv()
            or as.environment(package) as in globalenv()$x are found
  Warning (test-obj_find.r:333:3): T11) objects given with a full environment path involving globalenv()
            or as.environment(package) as in globalenv()$x are found
  Warning (test-obj_find.r:337:3): T11) objects given with a full environment path involving globalenv()
            or as.environment(package) as in globalenv()$x are found
  Warning (test-obj_find.r:339:3): T11) objects given with a full environment path involving globalenv()
            or as.environment(package) as in globalenv()$x are found
  Warning (test-obj_find.r:345:3): T11) objects given with a full environment path involving globalenv()
            or as.environment(package) as in globalenv()$x are found
  Warning (test-obj_find.r:347:3): T11) objects given with a full environment path involving globalenv()
            or as.environment(package) as in globalenv()$x are found
  Warning (test-obj_find.r:353:3): T11) objects given with a full environment path involving globalenv()
            or as.environment(package) as in globalenv()$x are found
  Warning (test-obj_find.r:355:3): T11) objects given with a full environment path involving globalenv()
            or as.environment(package) as in globalenv()$x are found
  ERROR (test-obj_find.r:411:9): T21) specifying include_functions=TRUE returns ALL the function environments where the object is found
  
  [ FAIL 1 | WARN 10 | SKIP 7 | PASS 311 ]
  Error: Test failures
  Execution halted