Are you using R.app (you failed to say)?

If so, have you acted on the documentation about 'app nap'? E.g. §4.1 of the R-admin manual.

On 18/02/2023 12:31, Spencer Graves wrote:
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
 >


--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to