The blastula package enables displaying an html string in the RStudio viewer. This avoids having to save an html object to a file.
my_html <- "<h1>Here's some HTML</h1>
<p>Here's a paragraph</p>
</br>
</br>"
blastula::compose_email(blastula::md(my_html))