The crux is that R is slow at everything except vectorized operations. So, if you're modeling any kind of backtest on an event-based/looping architecture, it's not the correct way to approach the problem in R. That said, vectorizing everything is definitely not convenient. In my opinion, if...