I was getting the occasional crash related to the SO object and I think I have identified what is causing it. It seems to be that if you use an object that is in your R environment after you restart the R session in R studio then the session crashes. This occurs on the Mac and Windows. To reproduce initialise an So object from a file.
test_so_file <- "UC1_focei_SO.xml"
test_so <- libsoc::so_SO_read(file.path("tests/testthat", test_so_file))
Test is works:
test_so$all_population_estimates()
Restart the R session and try the last command again:
test_so$all_population_estimates()
This crashes the R session. I've attached the R studio screenshot.

I was getting the occasional crash related to the SO object and I think I have identified what is causing it. It seems to be that if you use an object that is in your R environment after you restart the R session in R studio then the session crashes. This occurs on the Mac and Windows. To reproduce initialise an So object from a file.
Test is works:
Restart the R session and try the last command again:
This crashes the R session. I've attached the R studio screenshot.
