Correct EOF "return" functionality for rpy scripts.