For R-scripts