How to create user name and password to rshiny to protect
The answer to your question depends a lot on how you are deploying your app. Are you hosting it on shinyapps.io? Or running your own Shiny Server? Or sharing it locally? Here is some documentation as a starting point:
If you can’t find what you’re looking for there, explaining more about what you’re trying to do will help a lot.