R Under development (unstable) (2025-04-15 r88147 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ## This runs testme test script inst/testme/test-globalsOf,locals.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > globals:::testme("globalsOf,locals") Test 'globalsOf,locals' ... Sourcing 9 prologue scripts ... 01/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/001.load.R' 02/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/005.globals.R' 03/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/010.record-state.R' 04/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/030.imports.R' 05/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/050.utils.R' 06/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/090.context.R' 07/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/090.options.R' 08/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/091.envvars.R' 09/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_prologue/995.detrius-connections.R' Sourcing 9 prologue scripts ... done Running test script: 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/test-globalsOf,locals.R' > library(globals) > message("*** globalsOf() w/ local() ...") *** globalsOf() w/ local() ... > for (locals in c(TRUE, FALSE)) { + message(sprintf("- locals=%s", locals)) + f <- local({ + a <- 42 + function() a + }) .... [TRUNCATED] - locals=TRUE List of 2 $ f:function () $ a: num 42 - attr(*, "where")=List of 2 ..$ f: ..$ a: - attr(*, "class")= chr [1:2] "Globals" "list" - locals=TRUE with nested local():s List of 3 $ f:function () $ a: num 42 $ b: num 3.14 - attr(*, "where")=List of 3 ..$ f: ..$ a: ..$ b: - attr(*, "class")= chr [1:2] "Globals" "list" - locals=FALSE List of 1 $ f:function () - attr(*, "where")=List of 1 ..$ f: - attr(*, "class")= chr [1:2] "Globals" "list" - locals=FALSE with nested local():s List of 1 $ f:function () - attr(*, "where")=List of 1 ..$ f: - attr(*, "class")= chr [1:2] "Globals" "list" > message("*** globalsOf() w/ local() ... DONE") *** globalsOf() w/ local() ... DONE Sourcing 5 epilogue scripts ... 01/05 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_epilogue/002.undo-state.R' Failed to undo environment variables: - Expected environment variables: [n=207] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', ..., 'tempdirname' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: 02/05 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_epilogue/090.gc.R' 03/05 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_epilogue/099.session_info.R' 04/05 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_epilogue/995.detritus-connections.R' 05/05 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/globals/testme/_epilogue/999.detritus-files.R' Skipping, because path appears not to be an 'R CMD check' folder: 'D:/temp/2025_04_16_07_20_17_20184' Sourcing 5 epilogue scripts ... done Test time: user.self=0.2s, sys.self=0.01s, elapsed=0.2s, user.child=NAs, sys.child=NAs Test 'globalsOf,locals' ... success > > proc.time() user system elapsed 0.39 0.10 0.42