Small change to hello shiny example

I would like to adapt the first example on here:
https://shiny.rstudio.com/tutorial/written-tutorial/lesson1/
so that it will ask for the data to be pasted from the clipboard instead of having the data already in its library.
I'm sure this is covered in lots of places but I've googled with all the R words I know and can't find anything.

Not sure about a shiny-specific implementation, but the clipr package would be a good place to start:

thank you, I'll try that