I added references to css and javascript files as follows:
tags$link(rel="stylesheet", type="text/css", href="rtp.css"),
tags$script(type="text/javascript", src = "rtp.js"),
How do I make a call to a javascript function defined in "rtp.js"? I have tried
tags$script(type="text/javascript", src = "myfunction()")
(which does not work).