R function utility snippets I've written or collected