{"id":13892935,"url":"https://github.com/leeper/meme","last_synced_at":"2025-03-17T01:30:53.656Z","repository":{"id":70769803,"uuid":"20856720","full_name":"leeper/meme","owner":"leeper","description":"Meme Generation in R","archived":false,"fork":false,"pushed_at":"2015-04-25T20:34:57.000Z","size":542,"stargazers_count":122,"open_issues_count":5,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-27T15:38:14.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leeper.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-15T14:04:33.000Z","updated_at":"2024-06-14T16:56:06.000Z","dependencies_parsed_at":"2023-02-24T15:30:48.654Z","dependency_job_id":null,"html_url":"https://github.com/leeper/meme","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeper%2Fmeme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeper%2Fmeme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeper%2Fmeme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeper%2Fmeme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leeper","download_url":"https://codeload.github.com/leeper/meme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835942,"owners_count":20355611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T17:01:19.981Z","updated_at":"2025-03-17T01:30:53.252Z","avatar_url":"https://github.com/leeper.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# Meme Generation in R\n\n[![Build Status](https://travis-ci.org/leeper/meme.png?branch=master)](https://travis-ci.org/leeper/meme)\n\nAccording to [Wikipedia](http://en.wikipedia.org/wiki/Internet_meme):\n\n\u003eAn Internet meme (/'mi?m/ meem) is an activity, concept, catchphrase or piece of media which spreads, often as mimicry, from person to person via the Internet.\n\n**meme** is an R package that connects with several online image generators to create internet memes, which can then be loaded into R, plotted, and saved locally.\n\n## Installation ##\n\nAt some point **meme** will be [available on CRAN](http://cran.r-project.org/web/packages/meme/index.html) and installed from within R from your favorite CRAN mirror:\n\n```\ninstall.packages(\"meme\")\n```\n\nThe latest development version, available here, can be installed directly using Hadley Wickham's [devtools](http://cran.r-project.org/web/packages/devtools/index.html) package:\n\n```\nif(!require(\"devtools\")) install.packages(\"devtools\")\nlibrary(\"devtools\")\ninstall_github(\"leeper/meme\")\n```\n\n## Examples ##\n\nHere are some simple examples using the package and the default [memecaptain](http://memecaptain.com/) generator. To get started, you can grab some image templates from one of the meme generator sites. We'll use memecaptain because it doesn't require a username and password.\n\n```{r templates}\nlibrary(\"meme\")\ntemplates \u003c- get_templates(\"memecaptain\")\n```\n\nYou can use the `plot.meme_template` method to plot all templates from a given site to help you figure out which one you want to use. Here's some code to do it:\n\n```\npar( mfrow = n2mfrow(length(templates)), mar=rep(0,4), mgp=rep(0,3))\ninvisible(lapply(templates, plot))\n```\n\nHere are some example memes. These could probably be better, so pull requests are welcome!\n\n```{r allthethings, fig.width=5, fig.height=5, fig.path='inst/figures/'}\nplot(allthethings \u003c- create_meme(templates[[2]], \"Code\", \"all the things!\"))\n```\n\n```{r simply, fig.width=6, fig.height=5, fig.path='inst/figures/'}\nplot(simply \u003c- create_meme(templates[[10]], \"One does not simply\", \"reshape data from wide to long\"))\n```\n\n```{r yuno, fig.width=5, fig.height=5, fig.path='inst/figures/'}\nplot(yuno \u003c- create_meme(templates[[55]], \"R CMD check\", \"y u no work?\"))\n```\n\n```{r grumpy, fig.width=5, fig.height=7, fig.path='inst/figures/'}\nu \u003c- \"http://img4.wikia.nocookie.net/__cb20131009153844/villains/images/f/f6/Grumpy_Cat.jpg\"\nplot(grumpy \u003c- create_meme(u, \"\", \"R-help\"))\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeper%2Fmeme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleeper%2Fmeme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeper%2Fmeme/lists"}