I would like my Shiny app (in R) to limit the number of characters a user can input in response to a textInput command.
I can request the user to limit to 50 chara
You can't add custom attribute to textInput, you could probably be able to write custom function to generate input, but it will be easier to do this in javascript:
shinyjs::runjs("$('#inputName').attr('maxlength', 50)")