test should always fail on an infinite loop within a finite time (at the cost of some false positive of course) See http://blog.revolutionanalytics.com/2014/10/r-in-production-controlling-runtime.html