Cooking up R snippets