在pdf乳胶中嵌入闪亮的应用程序(R knitr)

时间:2018-05-27 17:11:53

标签: r shiny latex knitr

我知道将闪亮的应用程序直接放入pdf latex是不可能的,但我已经听过(How to embed an interactive shiny plot in a pdf / presentation? (via knitR maybe) HubertL的回答)它可以绑定它通过链接。有人可以帮助我吗?我还没有发现任何关于此的事情。我正在使用beamer Madrid(Idk,如果它很重要)。

1 个答案:

答案 0 :(得分:1)

您必须先发布Shiny应用程序。获得在线应用程序的URL后,您可以使用knitr::include_url()以非HTML输出格式包含应用程序的自动屏幕截图。有关详细信息,请参阅https://bookdown.org/yihui/bookdown/web-pages-and-shiny-apps.html

请注意,此功能目前需要 webshot 包和PhantomJS:

install.packages("webshot")
webshot::install_phantomjs()