'Embedding a shiny app into reveal.js document

I am working with a revealjs_presentation in Rmarkdown and I want to include a Shiny app hosted in shinyapps.io but can't find the line of code to embed it.

I tried the method recommended here by embedding it directly to the file but that process yielded the following error "revealjs_presentation is not compatible with runtime shiny".



Solution 1:[1]

Writing this works for me.

App is deployed elsewhere:

library(htmltools)

HTML('<section id = "Probability of presence heatmap" data-background-iframe="https://XXXXX.shinyapps.io/XXXXX/" data-background-interactive>
</section>')

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DanielBonnery