Skip to content

should a .R file use ptR mode? #48

@mslegrand

Description

@mslegrand

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions