Based on this example , I am trying to select only one row and therefore select one point.
I changed the datatable (cars) line to datatable (cars, selection = 'single') according to the documentation, which restricts the selection to only one line.
However, after selecting more than once, even if only one row is selected, all previous points remain highlighted.
Is there a way to ensure that only one row is returned from the selection, that is, all previous choices are cleared?
thanks
r shiny
Iain
source share