randompic is a package that will give you a link that takes you to a page with a random picture of a bear, or bacon, etc, and you can select the size of the picture you want. It can also generate a doge meme link, you just have to type the words that you want to appear on the meme.
I got this idea after checking this site: R for cats
To install the package:
devtools::install_github("bdacunha/randompic") library(randompic)
These are the functions that are included in the package:
Now here is an example of what my function getbears does:
getbears(200, 400)
And here is the image from the link
It's really easy to use the other functions as well:
For getbacon:
getbacon(400, 500)
If we want a meme we use getmeme:
getmeme(c("wow", "soeasy", "greatjob"))
randompic is a fun and layback package that will help you entertain yourself and others
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.