R package to send an useless e-mail
To install, run:
R
if (!require(devtools)) {
install.packages('devtools')
}
devtools::install_github('Emelieh21/trolMail')
This package only includes one function trolmail()
, which generates an email with a random giphy gif and compliment. For this the Giphy API is used and an API key is needed (can be requested here). For the trolMail()
function to work, make sure to save your Giphy API key in your .Renviron file:
/folder/of/your/home/directory/.Renviron
giphy_key=<YOUR_API_KEY>
The function works as follows:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.