• Stars
    star
    199
  • Rank 196,105 (Top 4 %)
  • Language
    R
  • Created over 6 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tidyverse compatible package for creating memes in R using the magick package.

memer

Travis build status AppVeyor build status CRAN status

Overview

memer is a a tidyverse-compatible R package for creating memes. Mostly wrappers around magick functions.

Installation

# Install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("sctyner/memer")

Available Memes

library(memer)
meme_list()
##  [1] "AllTheThings"       "AmericanChopper"    "AncientAliens"     
##  [4] "BatmanRobin"        "DistractedBf"       "EvilKermit"        
##  [7] "ExpandingBrain"     "FirstWorldProbs"    "FryNotSure"        
## [10] "HotlineDrake"       "IsThisAPigeon"      "NoneOfMyBusiness"  
## [13] "CheersLeo"          "OneDoesNotSimply"   "DosEquisMan"       
## [16] "OffRamp"            "OprahGiveaway"      "Philosoraptor"     
## [19] "PicardFacePalm"     "PicardWTH"          "Purples"           
## [22] "PutItPatrick"       "Rainbow"            "ShiaJustDoIt"      
## [25] "Spongebob"          "SuccessKid"         "ThatWouldBeGreat"  
## [28] "TheRockDriving"     "ThinkAboutIt"       "TrumpBillSigning"  
## [31] "TwoButtonsAnxiety"  "WhatIfIToldYou"     "CondescendingWonka"
## [34] "YoDawg"             "YoDawg"             "Y-U-NOguy"

Usage

meme_get("DistractedBf") %>% 
  meme_text_distbf("tidyverse", "new R users", "base R")

meme_get("OprahGiveaway") %>% 
  meme_text_bottom("EVERYONE GETS A %>%!!!", size = 36)

meme_get("AmericanChopper") %>%
  meme_text_chopper("Stop calling yourself 'just an R user'!",
                    "But I've never written a package!",
                    "So?? You're still an important part of the R community!",
                    "But people who write packages are more important",
                    "NO! All members of the R community are valued & deserve respect!")

Post R Memes directly to Twitter!

meme_get("ExpandingBrain") %>% 
  meme_text_brain("Sharing memes online", 
                  "Making your own memes", 
                  "Making memes in R", 
                  "Using rtweet to share your memes", 
                  size = 17)

You can also post memes directly to Twitter. You will need to install the rtweet package for that. Just make sure to set up a Twitter token (see here for more information on that) and you are good to go. The meme_tweet function also includes the possibility to tag the R Memes for Statistical Fiends account on Twitter for maximum exposure :)

meme_get("DosEquisMan") %>% 
  meme_text_top("I don't always tweet memes", size = 28) %>% 
  meme_text_bottom("But when I do\nI use the memer package in R", size = 26) %>%
  meme_tweet(tweet_text = "It's dangerous to meme alone. Here take this.",
             tag_rstatsmemes = T)

Confused? Use meme_explain()!

Using meme_explain, you can pass any of the meme names to be taken to their page on knowyourmeme.com.

โš ๏ธ โš ๏ธ โš ๏ธ Content from knowyourmeme.com may be offensive. The authors of memer have no control over what you may see when using meme_explain().

meme_explain("DistractedBf", launch = F, content_warning = T)
> knowyourmeme can contain potentially offensive results,
  are you sure you want to open it? [Y]es / [N]o:

Add your own meme!

โš ๏ธ โš ๏ธ โš ๏ธ This is an advanced step. Proceed with caution.

If you want to add your own meme, use memer:::meme_add():

  1. Fork this repo and clone to your system.
  2. Add your meme file to inst/extdata.
    1. It should be a .png.
    2. It should be small: resolution of 72 and width no more than 500 pixels.
  3. Use meme_add() as below.
setwd("path/to/your/memer")
meme_add("Memename", "memefile.png")
  1. Re-install memer as below:
devtools::check(document = F)
devtools::install()
  1. (Optional) If you would like your meme to be added to memer, submit a pull request!

More Repositories

1

history_of_statistics

Resources for learning about the history of statistics and statisticians. By statisticians, for statisticians.
166
star
2

geomnet

Examples and data for geom_net
R
97
star
3

OpenForSciR

Free, online book "Open Forensic Science in R." This book is for anyone looking to do forensic science analysis in a data-driven and open way.
HTML
40
star
4

r4ds-bookclub-rladiesdc

Materials and notes for the R-Ladies DC R for Data Science book club
6
star
5

ctv-graphics

CRAN Task View: Graphics
R
5
star
6

sctyner.github.io

My website. Built with help from https://github.com/daattali/beautiful-jekyll#readme
HTML
5
star
7

useR2020-ggplot2

Materials for the virtual ggplot2 tutorial for useR2020
R
3
star
8

ggCompNet

R
3
star
9

talks

A place for storing all my slides as I transition from jekyll + github.io site to a Hugo + netlify site
HTML
3
star
10

ctv-forsci

First pass at a CRAN task view for Forensic Science
R
2
star
11

data-jamboree

Data jamboree code for ASA SSC Symposium
HTML
2
star
12

SAOM-removing-blindfold

Visualization based assessments of stochastic actor-oriented models for social networks
R
2
star
13

vitalsigns

My work from ProPublica's Vital Signs Hackathon in Chicago, May 13-14.
2
star
14

JSOmetaN

R
1
star
15

ggnet-paper

TeX
1
star
16

plotcon17

My presentation for PLOTCON 2017 in Oakland, CA
HTML
1
star
17

netvizinf

R package for my visual inference for networks research
R
1
star
18

NetworksVizInference

R
1
star
19

ncaa-football

Collecting and visualizing D1 college football games as networks.
R
1
star
20

dprocsim

Simulating from Dirichlet Process Priors for Non-parametric distribution estimation.
R
1
star
21

dplyr050

I need an older version of dplyr for some of its unexported functions and I'm too lazy to figure out how to Rcpp them myself.
R
1
star
22

slave-trade-data

R
1
star
23

joy-of-clustering

Code to create plots from http://www.statslife.org.uk/culture/2553-the-joy-of-clustering
R
1
star