Image not showing in Shiny app R

前端 未结 4 1136
失恋的感觉
失恋的感觉 2020-12-02 00:14

I have an image i\'d like to embed into my shiny app, and have read as much as I can find on how to do it. Although, all I get is a blue question mark when I run my code.

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 00:33

    After coming back to this problem, I found that the solution is to simply format the Shiny code properly, by naming the R file app.R, and clicking Run App as opposed to selecting all of the code and running within the console.

    Not sure how or why this makes a difference, but the numerous Shiny applications I have worked on since have all been resolved when doing this.

提交回复
热议问题