Currently .R files are internally using .ptR mode. This results in parsing as .ptR, which produces undesirable effects:
for example when creating a custom control, we might have
tagList( singleton(tags$head(tags$script(src = "widgetCntrl.js"))), div( id=inputId, newWidgetCntrl(WH=wh, inputId=inputId, theta_0), "data-theta"=theta_0, class="widgetCntrl" ) )
But a warning is issued that src is not an attribute of tags$script.
To fix either
Additionally, the dnippets bar appears, with options not appropriate to an plain R file
Currently .R files are internally using .ptR mode. This results in parsing as .ptR, which produces undesirable effects:
for example when creating a custom control, we might have
tagList( singleton(tags$head(tags$script(src = "widgetCntrl.js"))), div( id=inputId, newWidgetCntrl(WH=wh, inputId=inputId, theta_0), "data-theta"=theta_0, class="widgetCntrl" ) )But a warning is issued that src is not an attribute of
tags$script.To fix either
use the usual R parser as in shinyAce or
fix the ptR-ace parser to ignore this.
Additionally, the dnippets bar appears, with options not appropriate to an plain R file