Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html “内部样式标签”;选择输入";斯希尼_Html_R_Styles_Shiny - Fatal编程技术网

Html “内部样式标签”;选择输入";斯希尼

Html “内部样式标签”;选择输入";斯希尼,html,r,styles,shiny,Html,R,Styles,Shiny,我有一个反应式的selectInput,我希望它的一部分是粗体的。代码如下: ui.r: 服务器.r shinyServer(function(input, output) { df<-reactive({ s<-rep(0,input$num) for(i in 1:input$num){ s[i]<-paste("Name",i,sep="") } s }) dflist<-reactive({ s

我有一个反应式的selectInput,我希望它的一部分是粗体的。代码如下:

ui.r:

服务器.r

shinyServer(function(input, output) {

  df<-reactive({
    s<-rep(0,input$num)
    for(i in 1:input$num){
      s[i]<-paste("Name",i,sep="")

    }
    s
  })

  dflist<-reactive({
    s<-rep(0,input$num)
    for(i in 1:input$num){
      s[i]<-paste("label",i,sep="")

    }
    s
  })

  output$select3 <- renderUI({
    x1=dflist()
    x1<-paste((df())," ", " (", toupper(x1), ")", sep="")
    select.value3<-(x1)
    selectizeInput("UseVar", "Use # Variable (OPTIONAL):", choices=c("None",select.value3),
                   multiple=F,selected="None")

  })
})
在paste()函数中,我的下拉列表显示为Name1(标签1)”。有没有办法做到这一点

shinyServer(function(input, output) {

  df<-reactive({
    s<-rep(0,input$num)
    for(i in 1:input$num){
      s[i]<-paste("Name",i,sep="")

    }
    s
  })

  dflist<-reactive({
    s<-rep(0,input$num)
    for(i in 1:input$num){
      s[i]<-paste("label",i,sep="")

    }
    s
  })

  output$select3 <- renderUI({
    x1=dflist()
    x1<-paste((df())," ", " (", toupper(x1), ")", sep="")
    select.value3<-(x1)
    selectizeInput("UseVar", "Use # Variable (OPTIONAL):", choices=c("None",select.value3),
                   multiple=F,selected="None")

  })
})
strong(toupper(x1))