README.md

This is the readme file for my R package called randompic

About me:

My name is Brenda D'Acunha and I'm currently taking the STAT547M class at UBC as part of the coursework for the completion of my MSc in Geology.

As part of this class, we had to create an R package, and well, here it's my baby!

About randompic:

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")
#> Using github PAT from envvar GITHUB_PAT
#> Downloading GitHub repo bdacunha/randompic@master
#> Installing randompic
#> '/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file  \
#>   --no-environ --no-save --no-restore CMD INSTALL  \
#>   '/private/var/folders/3b/gpvbsmfs7dl8q1vnz7tzhj0m0000gn/T/Rtmp02bdIV/devtoolsc40c2783c2f7/bdacunha-randompic-ad0d71c'  \
#>   --library='/Library/Frameworks/R.framework/Versions/3.2/Resources/library'  \
#>   --install-tests
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)
#> [1] "![](http://placebear.com/g/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)
#> [1] "![](http://baconmockup.com/400/500)"

If we want a meme we use getmeme:

getmeme(c("wow", "soeasy", "greatfunction"))
#> [1] "![](http://dogr.io/wow/soeasy/greatfunction.png)"

randompic is a fun and layback package that will help you entertain yourself and others



bdacunha/randompic documentation built on May 12, 2019, 3:39 a.m.