ioslides 降价演示幻灯片中的全尺寸闪亮应用程序

Full size shiny app in an ioslides markdown presentation slide

试图弄清楚如何在 ioslides markdown 中拥有一个全尺寸闪亮的应用程序。我有一些几乎可以工作的东西,但它有点特别。我也不相信当我在更大分辨率的屏幕上显示演示文稿时它会重现(因为我在 div 中使用 px)?:

---
title: "My Title"
author: "My Name"
date: "29 March 2016"
runtime: shiny
output: 
  ioslides_presentation
---
##  

<div style="margin-left:-50px; margin-top:-50px; width:80%; height:100%">
```{r, echo=FALSE, message=FALSE, fig.width=8}
inputPanel(
  selectInput("n_breaks", label = "Number of bins:",
              choices = c(10, 20, 35, 50), selected = 20),

  sliderInput("bw_adjust", label = "Bandwidth adjustment:",
              min = 0.2, max = 2, value = 1, step = 0.2)
)

renderPlot({
  hist(faithful$eruptions, probability = TRUE, breaks = as.numeric(input$n_breaks),
       xlab = "Duration (minutes)", main = "Geyser eruption duration")

  dens <- density(faithful$eruptions, adjust = input$bw_adjust)
  lines(dens, col = "blue")
})
```
</div>

给予:

哪种使用了一些较大的边距 space(根据需要)但仍未覆​​盖整个幻灯片。

尝试调整 div<> 中的值。您可以超过 100% 并以像素为单位设置大小,例如<div style="margin-left:-120px; margin-top:-50px; width:900px">