add some relevant r snippets

import os in the global above to keep this uncluttered.