RServer/RInterface: changes to suit long-running R code