Shiny Tutorial Error in R

后端 未结 2 735
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 16:16

I\'ve seen some cool uses of shiny with R to make web applications and wanted to try to learn how to use it myself. I am doing the tutorial right now, but when I get to the

2条回答
  •  抹茶落季
    2020-12-06 16:51

    For me, I had this issue when I forgot about using renderPrint, which is easy to forget when you're just starting up.

    For example:

    shinyServer(function(input,output) {
      output$outputString <- input$something
      }
    )
    

    When what I really needed to do was

    shinyServer(function(input,output) {
      output$outputString <- renderPrint({input$something})
      }
    )
    

提交回复
热议问题