Last active
November 12, 2019 22:58
-
-
Save mpjdem/00f45e49e4ac894ca3dcc6c6a9c92753 to your computer and use it in GitHub Desktop.
R script to print out an emoji
This file contains 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
#!/usr/bin/Rscript --vanilla | |
# To install {emo}, do: remotes::install_github("hadley/emo") | |
# commandArgs() parses arguments provided on the command line into a <list> | |
args <- commandArgs(trailingOnly = TRUE) | |
# Use cat() for output | |
cat(emo::ji(args[[1]]), "\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment