R-based scripts and code snippets