blastula icon indicating copy to clipboard operation
blastula copied to clipboard

Connect: Pandoc error when using "flexdashboard" as the output format

Open MadhulikaTanuboddi opened this issue 4 years ago • 1 comments

When blastula::attach_connect_email is called from a flexdashboard, we see the following errors related to Pandoc

pandoc: /var/folders/58/x5dgwbg979z3db6nns_5zs940000gn/T//Rtmp3Ib98K/email5316638c224_files/figure-html/diamonds_plot-1.mb.png: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
Execution halted

Steps to repro:

  1. Use the example https://github.com/rich-iannone/blastula/blob/master/inst/examples/connect-example-main.Rmd as a reference
  2. Change the output format from html_document to below output: flexdashboard::flex_dashboard
  3. Save and knit the example

You will see the pandoc error saying the path to the attachments is not found.

blastula_flexdashboard_issue

Additional example/repro can be found at https://github.com/colearendt/20200309-blastula-issue

MadhulikaTanuboddi avatar Apr 03 '20 19:04 MadhulikaTanuboddi

This looks relevant. https://github.com/rstudio/flexdashboard/blob/404cdac92d4bc1934e3b3a2c514daba0601d050a/R/flex_dashboard.R#L258-L273

jcheng5 avatar Apr 03 '20 19:04 jcheng5