Skip to contents

Records each message from who_am_i() as a ggplot frame using ggplot2 and ggsave(), then assembles the frames into a GIF with gifski.

Usage

who_am_i_gif(
  name,
  likes,
  learn,
  work,
  collab,
  connect = TRUE,
  output = "intro.gif",
  width = 800,
  height = 400,
  frame_duration = 1.5,
  first_duration = 1,
  last_duration = 4
)

Arguments

name

Your name

likes

Your likes

learn

What you're learning

work

What you're currently working on

collab

What you'd like to collaborate on

connect

logical, include the connect message (default TRUE)

output

path for the output gif (default "intro.gif")

width

gif width in pixels (default 800)

height

gif height in pixels (default 400)

frame_duration

seconds each middle frame is shown (default 1.5)

first_duration

seconds the first frame is shown (default 1)

last_duration

seconds the last frame is shown (default 4)

Value

invisibly returns output path

Examples

if (FALSE) { # \dontrun{
who_am_i_gif(
  name   = "Martin",
  likes  = "#rstats and data visualization.",
  learn  = "shiny app development, JavaScript, and Bayesian statistics.",
  work   = "R package development tools.",
  collab = "#rstats packages for data science.",
  output = "intro.gif"
)
} # }