小编Dan*_*lls的帖子

错误:Shiny(R)中未使用的参数

我想首先修改一个基本的闪亮示例应用程序的一些组件,但我不断收到此错误:

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))))
Run Code Online (Sandbox Code Playgroud)

这是我的代码:

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)) …
Run Code Online (Sandbox Code Playgroud)

r shiny

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

r ×1

shiny ×1