I have this code:
# Sidebar to select the species
# Sidebar to select the country (conditional of the species)
choices=subset(NestingArea, Sp=='Cc')$Country)) I would like that the
Sp would be equal to the "species" chosen on the first
radioButton, so that the list would change in consequence of the species. I have tried somethng like:
Sp==input.species , but it doesn't work.
Any clue of what I am doing wrong?
subset evaluates some of the arguments in unexpected environments which can, at times, be incompatible with how Shiny expects things to be run. The general advice is to avoid
subset when working in Shiny apps for now.
So I'd replace