【发布时间】:2015-07-09 18:49:59
【问题描述】:
我想从修改一个基本闪亮示例应用程序的一些组件开始,但我不断收到此错误:
ERROR: unused arguments (fluidRow(column(4, tags$hr(),
verbatimTextOutput("out1"), selectInput("in1", "Options", choices =
state.name, multiple = TRUE, selectize = FALSE))), fluidRow(column(4,
tags$hr(), verbatimTextOutput("out2"), selectInput("in2", "Options",
choices = state.name, multiple = TRUE, selectize = FALSE))))
这是我的代码:
ui.R
library(shiny)
library(shinythemes)
shinyUI(fluidPage(theme=shinytheme("flatly"),
#Application Title
headerPanel("States"),
br(),
fluidRow(
column(4,
tags$h4("Choose One or Multiple States"))
)),
fluidRow(
column(4,
tags$hr(),
verbatimTextOutput('out1'),
selectInput('in1', 'Options', choices = state.name, multiple = TRUE, selectize = FALSE)
)
),
fluidRow(
column(4,
tags$hr(),
verbatimTextOutput('out2'),
selectInput('in2', 'Options', choices= state.name, multiple = TRUE, selectize = FALSE))
))
================================================
服务器.R
sessionInfo()
install.packages("shiny")
library(shiny)
View(headcount)
attach(headcount)
headcount.crn=as.array(CRN)
shinyServer(function (input, output, session) {
output$out1 <- renderPrint(input$in1)
output$out2 <- renderPrint(input$in2)
})
【问题讨论】:
-
有时您会收到此类错误,因为
R未更新到最新版本。