I have been using some R libraries to analyze some big data lately, and I find myself disappointed, waiting for a few hours to start the analysis, just to finish and get some trivial error, for example, that I did not install the necessary pre-library or that one of my options was wrong. So, then I need to start all over again, do an exact analysis, generate the same variables that he had when they were dying, and wait a long time. Please note that these are not processed exceptions - they are fatal errors from R.
This is just a thought - and perhaps too good to be true, so please at least explain why this will not work - but is there a way to get R to execute "browser ()" when a fatal error occurs? For example, suppose he runs a script and meets “require (notInstalledYet)”. Instead of just dying and losing all the variables in memory, it would be great if he gave me the browser () in the place where he died, so that I could at least save the variables and, at best, fix problem (for example, install the library) and try again.
source
share