Error: unused arguments in Shiny (R)

I wanted to start by modifying several components of one of the base brilliant applications, but I keep getting this error:

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))))

Here is my code:

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))
  ))

=================================================

server.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)
  })
+4
source share
2 answers

This error usually means that you messed up your commas or brackets somewhere. In your case, there are too many closing brackets ( )) at the end of the first fluidRow, which closes fluidPageprematurely

+3
source

, (packageName), . , , , , .

+1

All Articles