RMarkdown与闪亮组件MathMenu.js / MathZoom.js错误

时间:2018-08-07 20:22:45

标签: javascript r shiny r-markdown

当我尝试使用我创建的带有Shiny组件的Rmarkdown文档在我的语言环境中工作时,出现了这些错误(文件无法加载扩展名MathMenu.js / MathZoom.js。

没有Shiny组件,文档运行正常,但是当我添加此组件时,出现此错误。

对此有何建议?

ui <- shinyUI(fluidPage(



# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
  sliderInput("bins",
              "Total Number of bins:",
              min = 1,
              max = 50,
              value = 25)
),

Show a plot of the generated distribution
mainPanel(
  plotOutput("distPlot")
)
   )
))


 server <- shinyServer(function(input, output) {

output$distPlot <- renderPlot({

# generate bins based on input$bins from ui.R
bins <- seq(min(activities$Max.Heart.Rate), max(activities$Max.Heart.Rate), length.out = input$bins + 1)


# draw the histogram with the specified number of bins
hist(activities$Max.Heart.Rate, breaks = bins, col = 'red', border = 'white',main="")

0 个答案:

没有答案