Last active
November 9, 2017 23:36
-
-
Save brodieG/4f1df81be808896c8b42a70bacdd3046 to your computer and use it in GitHub Desktop.
A Blinking Tidyverse Logo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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