feed numericInput (or sliderinput) with a vector of possible values

I'd like to feed numericInput (or sliderinput) with a vector of possible values like c(1, 3, 4, 5, 7, 9). In my code the excluded number would cause an error. Is that generally possible?

You might want to check:

Sounds promising, I'll give it a try! Thanks!