Copy data in selection from box select, lasso select, or tooltip hover to clipboard

Is there a way to copy the data from a box select or lasso select or tooltip hover to the clipboard? I haven’t found an argument to do this. I am using the ggplotly function to generate a plotly graph from a ggplot2 object.