Send your data by email using gmail API
When a script has finished running, you may want to email the results by using the Gmail API. you must first install and load the package gmailr package.
if you are going to display some kind of table I would suggest to also install the tableHTML package.
# Packages loading
This commande will transform your dataframe into an html table
#transform the data frame 'df' to a html table
msg = tableHTML(df)
# Construct email
# end send it
we build the email
and we send it