From what I gather, if I want to include a bit of javascript in my Shiny App, I do something like:
shinyUI(
fluidPage(
tags$head(
tags$script("if (1 > 0) {1}")
)
)
)
However, this causes an error in my browser, because if you do a 'view source' you see the actual javascript generated by Shiny is:
<script>if (1 > 0) {1}</script>
It appears the > is incorrectly converted to >. Now, is this because I'm not including javascript in Shiny in the right way, or is it a bug (or indeed a feature)? More importantly, is there any way round this?