I currently have a shiny application that renders a word document based on parameters chosen by the user in the application. The R Markdown document contains datatables from the DT package with color formatting based on values inside a specific cell.
I can render the document with the HTML output locally with no problems. However, when I publish the application to RStudio Connect the document will no longer render and errors to the following:
05/30 15:36:18.075
Warning: Error in : Functions that produce HTML output found in document targeting docx output.
05/30 15:36:18.075
Please change the output type of this document to HTML. Alternatively, you can allow
05/30 15:36:18.075
HTML output in non-HTML formats by adding this option to the YAML front-matter of
05/30 15:36:18.075
your rmarkdown file:
05/30 15:36:18.075
05/30 15:36:18.075
always_allow_html: yes
05/30 15:36:18.075
05/30 15:36:18.075
Note however that the HTML output will not be visible in non-HTML formats.
This does not occur locally and when rendered the HTML output is visible. I have performed the recommended action with no luck. Is there a package that Connect needs to have installed in order to render word_documents with HTML output?
Thank you in advance for your help!
Cheers,
Matt