[R-SIG-Mac] macOS may not give R much time in a long compute
Spencer Graves
@pencer@gr@ve@ @end|ng |rom prod@y@e@com
Sat Feb 18 13:31:16 CET 2023
Hello:
During a long compute (in a while loop), I've asked R to report
progress via:
# Progress report every 3 minutes
et3i <- proc.time()-startT3i
if(max(et3i)>180){
startT3i <- proc.time()
cat('iscan = ', iscan3, '; et3i = ',
round(et3i[1:3]), '\n')
}
When it's running properly, I get something like the following:
iscan = 22992 ; et3i = 180 26 104
However if I leave my computer running unattended, I can get reports
like the following:
iscan = 32124 ; et3i = 22 1 180
Evidently, macOS 11.7.4 decided NOT to give time to R.
Suggestions?
Thanks,
Spencer Graves
sessionInfo()
R version 4.2.2 (2022-10-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.7.4
Matrix products: default
LAPACK:
/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.2 tools_4.2.2 knitr_1.42 xfun_0.37
>
More information about the R-SIG-Mac
mailing list