Skip to content

Instantly share code, notes, and snippets.

App Install Plan

Critical

``` r
# tidyeval for multiple arguments that can take multiple variables
library(dplyr)
# in the case where the verbs' arguments are ... e.g. group_by(), select(), use !!! within the function to expand the variables back out
# no enquo() or enquos() is needed because you will pass in a vars() call
group_select <- function(df, group_vars, select_vars){
df %>%
@jennybc
jennybc / yaml_frontmatter_r_github_document.yaml
Last active February 9, 2022 21:36
YAML frontmatter for R Markdown to cause rmarkdown::render() to retain intermediate Markdown file for .R and .Rmd files, respectively
#' ---
#' title: "Something fascinating"
#' author: "Jenny Bryan"
#' date: "`r format(Sys.Date())`"
#' output: github_document
#' ---
@vratiu
vratiu / .bash_aliases
Last active July 23, 2024 09:19
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset