I have included references to css and javascript files in the code below:
tags$link(rel="stylesheet", type="text/css", href="rtp.css"),
tags$script(type="text/javascript", src = "rtp.js"),
How can I successfully call a javascript function that is defined in "rtp.js"? I attempted to do so using the following code:
tags$script(type="text/javascript", src = "myfunction()")
(but it did not work as expected).