Skip to content

Instantly share code, notes, and snippets.

@brodieG
Last active November 9, 2017 23:36
Show Gist options
  • Select an option

  • Save brodieG/4f1df81be808896c8b42a70bacdd3046 to your computer and use it in GitHub Desktop.

Select an option

Save brodieG/4f1df81be808896c8b42a70bacdd3046 to your computer and use it in GitHub Desktop.
A Blinking Tidyverse Logo
blinkyverse_logo <- function() {
logo <- c(tidyverse::tidyverse_logo(unicode=FALSE))
logoa <- gsub("*", "\u2b22", logo, fixed=TRUE)
logoa <- gsub("o", "\u2b21", logoa, fixed=TRUE)
logob <- gsub("o", "\u2b22", logo, fixed=TRUE)
logob <- gsub("*", "\u2b21", logob, fixed=TRUE)
logob <- gsub(".", "*", logob, fixed=TRUE)
cat('\n', c(logoa, '\n\nCTRL+C to exit.', "\033[11A"), sep='\n')
repeat{
Sys.sleep(0.3)
cat('\n', c(logob, "\033[8A\r"), sep='\n')
Sys.sleep(0.3)
cat('\n', c(logoa, "\033[8A\r"), sep='\n')
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment