I would like to disable right click on a shiny app. There is information I would like to not have copied and pasted elsewhere. I understand, a snapshot of the page will remain a possibility, but that's ok. Is there a way to use javascript to disable this functionality in a shiny app? I tried the following, but got an error.
tags$head(HTML("<script type='text/javascript'>document.addEventListener("contextmenu", function(e){
e.preventDefault();
}, false)</script>")),