Skip to content

Instantly share code, notes, and snippets.

@blakiseskream
Last active June 5, 2018 00:09
Show Gist options
  • Save blakiseskream/1fb6dc4f50d52548eb67f8437db6f70e to your computer and use it in GitHub Desktop.
Save blakiseskream/1fb6dc4f50d52548eb67f8437db6f70e to your computer and use it in GitHub Desktop.
create memes using R
# view the docs here https://cran.r-project.org/web/packages/meme/vignettes/meme.html
# example generating this meme I emailed you
# install.packages('meme')
library(meme)
# only run this once
if (.Platform$OS.type == "windows") {
windowsFonts(
Impact = windowsFont("Impact"),
Courier = windowsFont("Courier")
)
}
# can use an image at any url
meme('https://imgflip.com/s/meme/Leonardo-Dicaprio-Cheers.jpg', "you can make memes in R", "you're welcome")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment