Hello,
I'm trying to create a dashboard in RStudio using shiny, and I'm having trouble saving input.
So far, I have:
all_teams <- sort(unique(df$TEAM.x))
selectInput("team_choice_1", label = "Choose Team 1", choices = all_teams, selected = all_teams[[1]])
My goal is to have the user select from a list of unique team names from my dataframe, and then store that input value to be used later on. It seems like a really easy problem, but my problem is when I try to access the input value using input$team_choice_1, I get an error message stating "Can't access the reactive value 'team_choice_1' outside of the reactive consumer.", and then it prompts me to use reactive() or observe(). I've being trying to use reactive(), but I still can't access the value from the input.
Does anyone know an easy fix to this?
Thank you in advance