refactor r results processing into RPredictor