Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transferring/emailing files created by Quarto

When I would create a html document in RMarkdown, the file transfer/email process was straightforward; I would simply transfer/email the resulting html file.

However, when I try to do the same with a Quarto document, I do not get all of the functionality in the transferred file. For example, my Quarto document includes tabs using the ::: {.panel-tabset} option. When I open the transferred html document, the panel-tabsets are not displayed properly.

I believe that this is because Quarto also produces files in a separate directory. However, I trying to programmatically email the html document out to a distribution, and sendmailR is not letting me attach this directory.

Furthermore, my distribution list are NOT technical folks. I am not looking to have to tell them to save these files and then open the html; I was hoping to just attach the html file like I did with RMarkdown and have them natively open it just like an regular attachment.

What is the best way to transfer/email Quarto produced html documents?

like image 893
JBurns Avatar asked Oct 14 '25 08:10

JBurns


1 Answers

Someone directed me to use the html: self-contained in the YAML header. Based on that, I found this post which states what to do.

By putting the following in my YAML header, the resultant html file is self-contained:

---
format:
  html:
    self-contained: true
---
like image 82
JBurns Avatar answered Oct 17 '25 00:10

JBurns



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!