add relevant r snippets