我安装了以下内容:
>预览版RStudio,版本0.98.864(2014年5月24日)
> knitr和shiny的开发版本,通过devtools :: install_github(c(“yihui / knitr”,“rstudio / shiny”))
我想用自定义CSS创建一个闪亮的演示文稿(RStudio菜单项:文件>新文件> RMarkdow> Shiny> Shiny Presentation),但我不确定如何这样做.
h2 { font-size:1.8em; color: red; }
使用RMarkdown PResentations with ioslides webpage上给出的示例的摘录:
--- title: "Habits" author: John Doe date: March 22,2005 output: ioslides_presentation: css: temp.css --- ## Getting up - Turn off alarm - Get out of bed
但是,当我通过包含运行时将其转换为生成Shiny输出时:前言中的Shinyin,自定义格式不再有效.
--- title: "Habits" author: John Doe date: March 22,2005 runtime: shiny output: ioslides_presentation: css: temp.css --- ## Getting up - Turn off alarm - Get out of bed ## Slide with Interactive Plot ```{r,echo=FALSE} 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") }) ```
任何有关如何使用带有Shiny演示文稿的自定义CSS的提示都将非常感激.
编辑
与此问题类似,我无法通过在前面的内容中包含以下内容来包含我自己的徽标(显然在我自己的系统上将png更改为一个):
output: ioslides_presentation: logo: logo.png
我的有序列表也没有显示数字
谢谢.