Include a javascript file in Shiny app

前端 未结 5 1438
一生所求
一生所求 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:41

     └──shiny
        ├── server.R
        ├── ui.R
        └── www
            ├── stylesheet.css
            └── js
                 └── hoge.js
    

    ui.R

    Either one of them will work

    1. tags$head(HTML(""))
    
    2. HTML('
                  
                  
              ')
    

提交回复
热议问题