Skip to content

Instantly share code, notes, and snippets.

Last active Nov 12, 2019
What would you like to do?
R script to print out an emoji
#!/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