草庐IT

ModelVariables

全部标签

javascript - Shiny 的 conditionalPanel javascript 条件 : is there R %in% operator in javascript?

我正在尝试使用shiny包中的conditionalPanel函数构建一个Shiny的应用程序。条件应该用JavaScript编写,但我希望能够使用如下条件(用R编写)"TP53"%in%unlist(input$ModelVariables)文档说明:condition-AJavaScriptexpressionthatwillbeevaluatedrepeatedlytodeterminewhetherthepanelshouldbedisplayed.我对JavaScript一点都不熟悉。我试过input.ModelVariables=='TP53'但当input.ModelVa