R Under development (unstable) (2023-11-16 r85542 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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 script crashes in ~40s on R 2.15.3 patched and R 3.0.2 with > # R.oo (< 1.18.0). It only does so when 'methods' is attached. It > # does not crash on R 3.0.2 patched (2014-02-21 r65057) and beyond. > # It appears to not crash with 'R CMD check' on 2.15.3 but if run > # via 'Rscript' or similar. /HB 2014-02-22 > library("methods") > library("R.methodsS3") R.methodsS3 v1.8.2 (2022-06-13 22:00:14 UTC) successfully loaded. See ?R.methodsS3 for help. > loadNamespace("R.utils") > > # Remove all existing variables > rm(list=ls(all.names=TRUE)) > gc() used (Mb) gc trigger (Mb) max used (Mb) Ncells 319112 17.1 632125 33.8 632125 33.8 Vcells 534513 4.1 8388608 64.0 1917760 14.7 > > R.oo::setConstructorS3("Verbose2", function(con=stderr(), ...) { + R.oo::extend(R.oo::Object(), "Verbose", + .con = con + ) + }) > > print(sessionInfo()) R Under development (unstable) (2023-11-16 r85542 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows Server 2022 x64 (build 20348) Matrix products: default locale: [1] LC_COLLATE=C LC_CTYPE=German_Germany.utf8 [3] LC_MONETARY=C LC_NUMERIC=C [5] LC_TIME=C time zone: Europe/Berlin tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] R.methodsS3_1.8.2 loaded via a namespace (and not attached): [1] compiler_4.4.0 R.utils_2.12.3 R.oo_1.25.0 > message(Sys.time()) 2023-11-17 08:50:38.596705 > local({ + Verbose2(file()) + gctorture(TRUE) + unloadNamespace("R.utils") + unloadNamespace("R.oo") + NULL + }) NULL Warning message: In for (n in loadedNamespaces()) { : closing unused connection 3 () > gctorture(FALSE) > message(Sys.time()) 2023-11-17 08:50:42.000207 > print(sessionInfo()) R Under development (unstable) (2023-11-16 r85542 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows Server 2022 x64 (build 20348) Matrix products: default locale: [1] LC_COLLATE=C LC_CTYPE=German_Germany.utf8 [3] LC_MONETARY=C LC_NUMERIC=C [5] LC_TIME=C time zone: Europe/Berlin tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] R.methodsS3_1.8.2 loaded via a namespace (and not attached): [1] compiler_4.4.0 > > proc.time() user system elapsed 3.76 0.03 3.78