6 ms·
> It's much more complicated to avoid runtime errors or do proper testing in R It's not that much harder. There's no pytest, but testthat works well enough. I'
by mrtranscendence 5y ago
> It's much more complicated to avoid runtime errors or do proper testing in R
It's not that much harder. There's no pytest, but testthat works well enough. I've developed a few packages internally in R and wouldn't say it was that much harder to ensure correctness than for the corresponding Python packages. (We used to keep them in sync, before basically moving everything to Python.)
- disgruntledphd2 5y agoI actually quite like R's error handling. It's as good as Common Lisp's which is often held up as the epitome of this. You also have the dump.frames option, which will save your workspace on failure, which is incredibly useful when running R stuff remotely/in a distributed fashion.