[問題] Error in library(DT) shinyapps.io

看板R_Language作者 (luen)時間3周前 (2024/04/04 12:23), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
[問題敘述]: 目前有一個app已經發佈到shinyapps.io。網頁的內容是5個用shiny::renderTable() 及shiny::tableOutput() 呈現的表。想把這5個功能陽春的表換成每個column可以排序及 search的表。看過一些網頁都是用DT::renderDataTable()及shiny::dataTableOutput(). 我把原本已經發佈的app加上DT package的程式,發佈後shinyapps.io的logs顯示 Error in library(DT) : there is no package called ‘DT’ 不知道有沒有人成功地在shinyapps.io上面使用DT這個package? 有幾個我在local PC運行無錯的packages, 發佈到shinyapps.io上面時都出現了同樣的錯 誤: Error in library(calendR) : there is no package called ‘calendR’ Error in library(ggnewscale) : there is no package called ‘ggnewscale’ Error in library(gridExtra) : there is no package called ‘gridExtra’ 我的問題: (1) 除了發佈app, 看logs那裡出誤,有沒有辦法在發佈前就知道那些packages在shinyapps.io 上面有,而不是一個個去嘗試錯誤? (2) 除了DT, 有其他package能產生類似我想要的table嗎? (3) 除了shinyapps.io, 有其他免費host可以發佈R shiny app的嗎? 以下是我參考過的網頁 [Table as output based on user input in R shiny](https://stackoverflow.com/questions/61195541/table-as-output-based-on-user-input-in-r-shiny) [Shiny, plotly and DT](https://forum.posit.co/t/shiny-plotly-and-dt/141327) [程式範例]: 我把程式放在Google drive裡,可以用連結view/download [barcode-scanner_shiny-web-app.R](https://drive.google.com/file/d/1LypwN5rQftb5kPH8FzDN6aviGpxzNEZE/view?usp=sharing) 數據來源是一個我自已的Google sheet. 謝謝大家! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.146.70.97 (澳大利亞) ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1712204611.A.0B7.html
文章代碼(AID): #1c3Yj32t (R_Language)