'r shiny sliderInput with exact values instead of evenly divided range

So the API of the sliderInput widget allows you to set a min and a max and then it gives you a range between the min and max where the range is evenly divided. Is it possible to give sliderInput a vector of all the values you want and have the slider only able to land in one of those values in the vector?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source