Open luwidmer opened 2 years ago
Repeatedly loading / unloading rstan hard crashes R on Windows
See above.
library(rstan)
sessionInfo() for (i in 1:1000) { cat(i, "\n") if (i > 1) { library(rstan) }
detach("package:rstan", unload=T, character.only = T); unloadNamespace("rstan") }
No crash.
2.26.8
R 4.1.3
Windows 10 64 bit
Note that adding a gc() call after the detach statement makes this consistently crash on 2nd detach
Summary:
Repeatedly loading / unloading rstan hard crashes R on Windows
Description:
See above.
Reproducible Steps:
library(rstan)
sessionInfo() for (i in 1:1000) { cat(i, "\n") if (i > 1) { library(rstan) }
detach("package:rstan", unload=T, character.only = T); unloadNamespace("rstan") }
Current Output:
Expected Output:
No crash.
RStan Version:
2.26.8
R Version:
R 4.1.3
Operating System:
Windows 10 64 bit