Skip to content

Instantly share code, notes, and snippets.

@mpjdem
Last active November 12, 2019 22:58
Show Gist options
  • Save mpjdem/00f45e49e4ac894ca3dcc6c6a9c92753 to your computer and use it in GitHub Desktop.
Save mpjdem/00f45e49e4ac894ca3dcc6c6a9c92753 to your computer and use it in GitHub Desktop.
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