首页 > 解决方案 > 警告:$<- 中的错误:R 脚本中的无效下标类型“语言”

问题描述

我正在尝试调用renderPlot()函数。

UI.r 页面:

shinyUI(fluidPage(

  # Application title
  titlePanel("test"),
  sidebarLayout(
    ),
    # Show a plot of the generated distribution
    mainPanel(
       plotOutput("distPlot")
    )
  )
))

Server.r 页面:

output$distPlot <- renderPlot({
plot(cars)
})

如果我放断点,它会显示以下错误

Warning: Error in $<-: invalid subscript type 'language'

可能是什么问题。谁能帮忙!!

提前致谢

标签: rshiny

解决方案


推荐阅读