The character string goes into the body argument, but it’s wrapped in blastula’s md() function so compose_email() knows there is Markdown in the body that needs to be rendered. Next, turn that character string with markdown formatting into a blastula email object with blastula’s compose_email() function. As with usual markdown, **two blank lines** create a new paragraph and two asterisks bold text." library(blastula) blastula_body_text <- "This is my email body with _italics text_. In the example code below, I save some Markdown to a variable called blastula_body_text. You can do this by first loading the blastula package and then saving some Markdown as an R character string. You can use Markdown instead of raw HTML in the email body if you pair Microsoft365R with the blastula package. Sharon MachlisĮmail created by R and not yet sent appears in your Outlook Drafts folder. Creating an email object this way will also generate a message that appears in your Outlook Drafts folder. Adding it as an argument to the authentication function sometimes helps with approval: my_outlook This is my email body with bold text.")$ set_subject("My 2nd email subject")$ set_recipients(to = above code creates an email object with content type HTML and uses HTML formatting in the message. That app ID in bold is Microsoft’s official app ID. Microsoft Azure GitHub repoĪdvice on dealing with Microsoft365R authentication issues. That vignette links to another page with some helpful advice. You can view the vignette by running the base R vignette function vignette("auth", package = "Microsoft365R"). You may run into a problem with your work account and see an error that authentication failed “due to policies configured by your administrator.” The Microsoft365R authentication vignette has some suggestions on how to deal with this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |