r - user data as variable in shiny -
i building app analyze wind data using packages “shiny” , “openair”.
i trying read input data given user , use variables, keep getting :
error in updateselectinput(session, "pollutant", choices = names(df)) : object 'session' not found error: [on_request_read] connection reset peer
in ui.r have:
selectinput("pollutant","please choose pollutant",names(userdata)),
, in server.r:
observe({ df <- userdata() str(names(df)) if (!is.null(df)) { updateselectinput(session, "pollutant", choices = names(df))
} })
it sounds you're not including session
variable in server definition? i.e. use (input, output, session)
rather (input, output)
.
Comments
Post a Comment