{"id":14066071,"url":"https://github.com/smithjd/demo_gmailr","last_synced_at":"2025-07-29T22:30:33.373Z","repository":{"id":194852581,"uuid":"691209750","full_name":"smithjd/demo_gmailr","owner":"smithjd","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-14T18:58:15.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-26T10:26:53.587Z","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/smithjd.png","metadata":{"files":{"readme":"README.md","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,"governance":null}},"created_at":"2023-09-13T18:00:44.000Z","updated_at":"2024-07-12T23:11:02.000Z","dependencies_parsed_at":"2023-09-15T11:52:03.389Z","dependency_job_id":null,"html_url":"https://github.com/smithjd/demo_gmailr","commit_stats":null,"previous_names":["smithjd/demo_gmailr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithjd%2Fdemo_gmailr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithjd%2Fdemo_gmailr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithjd%2Fdemo_gmailr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithjd%2Fdemo_gmailr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smithjd","download_url":"https://codeload.github.com/smithjd/demo_gmailr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228052688,"owners_count":17862105,"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-13T07:04:55.484Z","updated_at":"2024-12-04T05:31:20.244Z","avatar_url":"https://github.com/smithjd.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# Working examples of `gmailr`\n\n**Motivation**: Getting charts and graphs in front of decision-makers depends on their habits and preferences. Here are alternative approaches that don't really work for me, for one reason or another:\n\n-   Putting a PDFs or a .docx file in Slack\n\n-   Create a public web page or site with Netlify\n\n-   Send a PDF or .docx file via email\n\n-   Create a Google Doc\n\nAn email goes directly to someone's in-box and it can be a full-fledged HTML \"report\". After it's sent to one person it can be forwarded to others.\n\nIt would be wonderful if Quarto could write a Google Doc!\n\nI have found that **gmailr** is much simpler to use than [**blastula**](https://pkgs.rstudio.com/blastula/), an aternative that sends email through a local ISP. This short demo will present different uses and methods for sending email from R through Gmail using the gmailr package: \u003chttps://gmailr.r-lib.org/\u003e.\n\nOnce you've set things up with the detailed [Gmail API setup instructions](https://gmailr.r-lib.org/dev/articles/oauth-client.html) that the package provides, a simple function makes it easy to send, for example, rendered Quarto reports and customized emails to many people at once.\n\nI'll demonstrate 4 different examples in increasing complexity:\n\n1.  Sending [a simple message](simple_html_example.qmd) to one or more addresses. Best for an 'on the fly' send, but it does take more than just using the Gmail interface.\n\n2.  Sending [customized messages](customized_messages.qmd), where each recipient gets a slightly different email.\n\n3.  Send [a report](send_rendered_report.qmd) based on a rendered .qmd file.\n\n4.  Send [a dynamic report](write-render-send-report.qmd) where R writes the .qmd that is then rendered and sent.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmithjd%2Fdemo_gmailr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmithjd%2Fdemo_gmailr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmithjd%2Fdemo_gmailr/lists"}