Skip to content

Instantly share code, notes, and snippets.

@cderv
Created November 24, 2020 09:48
Show Gist options
  • Save cderv/04b90cd13e833b97bf67ca643ecbd054 to your computer and use it in GitHub Desktop.
Save cderv/04b90cd13e833b97bf67ca643ecbd054 to your computer and use it in GitHub Desktop.
Tidyverse labels-ish
library(magrittr)
library(usethis)
# We want to keep question and not rename it to reprex so
# 1. Add question label with color and description
# 2. Remove renaming of question to reprex
labels <- c(tidy_labels(), "question")
rename <- tidy_labels_rename() %>% {.[names(.) != "question"]}
colors <- c(tidy_label_colours(), "FBCA04")
description <- c(tidy_label_descriptions(), "questions not answered anywhere else")
use_github_labels(
labels = labels,
rename = rename,
colours = colors,
descriptions = description,
delete_default = TRUE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment