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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -