Include a javascript file in Shiny app

前端 未结 5 1440
一生所求
一生所求 2020-11-29 02:02

I need to include a js library into my Shiny app. Currently I use includeHTML to include the script directly into html codes. e.g.

includeHTML(\'URL.js\')
<         


        
5条回答
  •  粉色の甜心
    2020-11-29 02:25

    Another option not discussed yet is that you just delete the ui.R file entirely, and then code the entire thing as a custom HTML file. Details here https://shiny.rstudio.com/articles/html-ui.html

    In this article, the default HTML form elements are automatically used as inputs in server.R, but you can also build custom input (or output) elements for shiny with this guide https://shiny.rstudio.com/articles/building-inputs.html

提交回复
热议问题