我有一个简单的闪亮应用程序,可以毫无问题地在本地运行它。但是,当我尝试将其发布到服务器时,出现以下错误。我什至不知道如何开始诊断问题。关于此主题的其他主题没有帮助。
我尝试更改R的版本,重新输入应用程序代码,更改编码类型。。
library(shiny)
server <- function(input,output){
}
ui <- shinyUI(
textInput("emailText","","")
)
shinyApp(ui=ui,server=server)
Preparing to deploy application...DONE
Uploading bundle for application: 21...DONE
Deploying bundle: 50 for application: 21 ...
Building Shiny application...
Bundle requested R version 3.4.3; using /usr/local/bin/R which has version 3.4.3
Error in fromJSON(content, handler, default.size, depth, allowComments, :
invalid JSON input
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> fromJSON -> fromJSON -> .Call
Execution halted
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.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.1.0 sp_1.3-1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.18 lattice_0.20-35 packrat_0.4.9-3 digest_0.6.15 later_0.7.3 mime_0.5 grid_3.5.0
[8] R6_2.2.2 jsonlite_1.5 xtable_1.8-2 magrittr_1.5 promises_1.0.1 RJSONIO_1.3-0 tools_3.5.0
[15] httpuv_1.4.5 rsconnect_0.8.9 compiler_3.5.0 htmltools_0.3.6 openssl_1.0.2