R-scripts and examples