knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Installation

RBitmoji is not currently available on CRAN, but you can install the development version from GitHub:

if (!requireNamespace("devtools")) {
  install.packages("devtools")
}
devtools::install_github("bgreenwell/RBitmoji")

Note: RBitmoji relies on the magick package, which requires an installation of ImageMagick.

Obtaining your Bitmoji ID

In order to use RBitmoji you will need your unique Bitmoji ID, which can be difficult to find. Fortunately, the get_id() function can simplify the process! TO use this function, you must supply the email address associated with your Bitmoji account. You will then be prompted to enter your Bitmoji account password using a secure blah, blah, blah. For example:

library(RBitmoji)
my_id <- get_id("greenwell.brandon@gmail.com")
library(RBitmoji)
my_id <- "1551b314-5e8a-4477-aca2-088c05963111-v1"

If successful, your id will be stored in the variable my_id. Once that is done, you can use the plot_comic() function to do real data science.

Plotting comics

The main function in RBitmoji is plot_comic().

# Plot a single comic
plot_comic(my_id, tag = "time magazine")

# Plot a comic with a friend
plot_comic(c(my_id, my_id), tag = "sloth")


bgreenwell/RBitmoji documentation built on May 25, 2019, 3:22 p.m.