R Under development (unstable) (2025-02-23 r87804 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 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 336464 18.0 629540 33.7 629540 33.7 Vcells 570306 4.4 8388608 64.0 2038265 15.6 > > R.oo::setConstructorS3("Verbose2", function(con=stderr(), ...) { + R.oo::extend(R.oo::Object(), "Verbose", + .con = con + ) + }) > > print(sessionInfo()) R Under development (unstable) (2025-02-23 r87804 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows Server 2022 x64 (build 20348) Matrix products: default LAPACK version 3.12.0 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.5.0 R.utils_2.13.0 R.oo_1.27.0 > message(Sys.time()) 2025-02-24 21:22:38.364334 > 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()) 2025-02-24 21:22:40.284332 > print(sessionInfo()) R Under development (unstable) (2025-02-23 r87804 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows Server 2022 x64 (build 20348) Matrix products: default LAPACK version 3.12.0 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.5.0 > > proc.time() user system elapsed 2.10 0.04 2.14