You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

golem Shiny应用eneRgyVD部署shinyapps.io失败:无法加载R/utils_helpers.R

基于golem开发的Shiny应用eneRgyVD部署到shinyapps.io失败排查

我用golem开发了Shiny应用eneRgyVD的新版本,本地通过run_app()运行完全正常,但部署到shinyapps.io后启动失败,显示通用错误提示exit status 1。

错误细节

  • 部署日志最后几行显示无法加载R/utils_helpers.R,同时存在警告:加载R/目录时,该目录包含R包可能引发异常。
  • RStudio的Deploy标签出现区域设置检测错误,提示read.table读取raw文件时发现不完整的最后一行,但我并未在应用中直接使用read.table或读取.csv文件,仅加载.rda文件以及在utils_helpers.R中读取一个.json文件。

已尝试的调试步骤

  • 在R/目录添加_disable_autoload.R文件
  • 设置options(shiny.autoload.r=FALSE)
  • 检查所有依赖包的导入配置
  • 重新连接shinyapps.io账户
  • 将应用文件复制到新目录后重新发布
    以上方法均未解决问题。

补充信息

  • 使用的核心包版本:shiny_1.7.2、golem_0.3.3
  • 旧版本应用部署正常,且同样存在Deploy标签的警告,因此怀疑问题源于utils_helpers.R的代码变更,目前正在逐步排查该文件的改动。

本地sessionInfo输出

R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=French_Switzerland.1252  LC_CTYPE=French_Switzerland.1252    LC_MONETARY=French_Switzerland.1252
[4] LC_NUMERIC=C                        LC_TIME=English_United States.1252 

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_1.7.2         eneRgyVD_0.0.0.9000

loaded via a namespace (and not attached):
  [1] colorspace_2.0-3         rjson_0.2.21             ellipsis_0.3.2           class_7.3-20            
  [5] rsconnect_0.8.27         leaflet_2.1.1            rprojroot_2.0.3          fs_1.5.2                
  [9] rstudioapi_0.13          proxy_0.4-27             farver_2.1.1             roxygen2_7.2.1          
 [13] remotes_2.4.2            DT_0.23                  golem_0.3.3              fansi_1.0.3             
 [17] xml2_1.3.3               cachem_1.0.6             knitr_1.39               config_0.3.1            
 [21] pkgload_1.3.0            jsonlite_1.8.0           shinydashboard_0.7.2     readr_2.1.2             
 [25] compiler_4.1.2           httr_1.4.3               assertthat_0.2.1         fastmap_1.1.0           
 [29] lazyeval_0.2.2           cli_3.3.0                later_1.3.0              s2_1.1.0                
 [33] prettyunits_1.1.1        htmltools_0.5.3          tools_4.1.2              gtable_0.3.1            
 [37] glue_1.6.2               dplyr_1.0.9              wk_0.6.0                 Rcpp_1.0.9              
 [41] jquerylib_0.1.4          vctrs_0.5.0              writexl_1.4.0            crosstalk_1.2.0         
 [45] ggalluvial_0.12.3        xfun_0.31                stringr_1.4.0            ps_1.7.1                
 [49] brio_1.1.3               testthat_3.1.4           miniUI_0.1.1.1           mime_0.12               
 [53] lifecycle_1.0.3          devtools_2.4.4           shinycssloaders_1.0.0    scales_1.2.0            
 [57] fresh_0.2.0              ragg_1.2.2               hms_1.1.1                promises_1.2.0.1        
 [61] thematic_0.1.2.1         curl_4.3.2               yaml_2.3.5               memoise_2.0.1           
 [65] ggplot2_3.4.0            sass_0.4.2               stringi_1.7.8            desc_1.4.1              
 [69] attachment_0.2.5         e1071_1.7-11             leaflet.extras_1.0.0     pkgbuild_1.3.1          
 [73] attempt_0.3.1            rlang_1.0.6              pkgconfig_2.0.3          shinydashboardPlus_2.0.3
 [77] systemfonts_1.0.4        evaluate_0.15            fontawesome_0.3.0        purrr_0.3.4             
 [81] sf_1.0-8                 labeling_0.4.2           htmlwidgets_1.5.4        processx_3.7.0          
 [85] tidyselect_1.2.0         here_1.0.1               magrittr_2.0.3           R6_2.5.1                
 [89] profvis_0.3.7            generics_0.1.3           DBI_1.1.3                pillar_1.8.1            
 [93] withr_2.5.0              units_0.8-0              tibble_3.1.8             crayon_1.5.1            
 [97] shinyWidgets_0.7.1       uuid_1.1-0               shinyalert_3.0.0         bs4Dash_2.1.0           
[101] KernSmooth_2.23-20       utf8_1.2.2               plotly_4.10.1            urlchecker_1.0.1        
[105] tzdb_0.3.0               rmarkdown_2.14           usethis_2.1.6            grid_4.1.2              
[109] data.table_1.14.2        callr_3.7.1              forcats_0.5.1            digest_0.6.29           
[113] classInt_0.4-7           xtable_1.8-4             tidyr_1.2.0              httpuv_1.6.5            
[117] textshaping_0.3.6        openssl_2.0.2            munsell_0.5.0            viridisLite_0.4.0       
[121] bslib_0.4.0              sessioninfo_1.2.2        askpass_1.1

内容的提问来源于stack exchange,提问作者Michaël

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 09:10:34