闪亮的值 [[3L]](cond) 错误但在本地运行
Error in value[[3L]](cond) in shiny but runs locally
我正在尝试部署一个在我的本地计算机上完美运行的应用程序。但是闪亮日志中的错误消息对我一点帮助都没有。有什么办法可以追踪到我至少知道它发生在哪里?然后我至少可以弄清楚为什么会这样..
闪亮的日志:
2022-05-23T07:08:50.240280+00:00 shinyapps[5948139]: ✔ dplyr 1.0.8 ✔ forcats 0.5.1
2022-05-23T07:08:50.240342+00:00 shinyapps[5948139]: ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
2022-05-23T07:08:50.240401+00:00 shinyapps[5948139]: ✖ dplyr::filter() masks plotly::filter(), stats::filter()
2022-05-23T07:08:50.240455+00:00 shinyapps[5948139]: ✖ dplyr::group_rows() masks kableExtra::group_rows()
2022-05-23T07:08:50.240511+00:00 shinyapps[5948139]: ✖ dplyr::lag() masks stats::lag()
2022-05-23T07:08:50.240568+00:00 shinyapps[5948139]: Registered S3 methods overwritten by 'ggfortify':
2022-05-23T07:08:50.240620+00:00 shinyapps[5948139]: method from
2022-05-23T07:08:50.240939+00:00 shinyapps[5948139]: autoplot.ets forecast
2022-05-23T07:08:50.240886+00:00 shinyapps[5948139]: autoplot.decomposed.ts forecast
2022-05-23T07:08:50.240673+00:00 shinyapps[5948139]: autoplot.Arima forecast
2022-05-23T07:08:50.240728+00:00 shinyapps[5948139]: autoplot.acf forecast
2022-05-23T07:08:50.240780+00:00 shinyapps[5948139]: autoplot.ar forecast
2022-05-23T07:08:50.241087+00:00 shinyapps[5948139]: autoplot.stl forecast
2022-05-23T07:08:50.240831+00:00 shinyapps[5948139]: autoplot.bats forecast
2022-05-23T07:08:50.241241+00:00 shinyapps[5948139]: fortify.ts forecast
2022-05-23T07:08:50.241285+00:00 shinyapps[5948139]: residuals.ar forecast
2022-05-23T07:08:50.241009+00:00 shinyapps[5948139]: autoplot.forecast forecast
2022-05-23T07:08:50.241192+00:00 shinyapps[5948139]: fitted.ar forecast
2022-05-23T07:08:50.241145+00:00 shinyapps[5948139]: autoplot.ts forecast
2022-05-23T07:08:50.241498+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241549+00:00 shinyapps[5948139]: The following object is masked from ‘package:dplyr’:
2022-05-23T07:08:50.241601+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241391+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241335+00:00 shinyapps[5948139]: Welcome! Want to learn more? See two factoextra-related books at https:// goo.gl/ve3WBa
2022-05-23T07:08:50.241653+00:00 shinyapps[5948139]: combine
2022-05-23T07:08:50.241445+00:00 shinyapps[5948139]: Attaching package: ‘gridExtra’
2022-05-23T07:08:50.241757+00:00 shinyapps[5948139]: Loading required package: RColorBrewer
2022-05-23T07:08:50.241822+00:00 shinyapps[5948139]: Loading required package: NLP
2022-05-23T07:08:50.241870+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241705+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241960+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242019+00:00 shinyapps[5948139]: The following object is masked from ‘package:ggplot2’:
2022-05-23T07:08:50.241915+00:00 shinyapps[5948139]: Attaching package: ‘NLP’
2022-05-23T07:08:50.242063+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242115+00:00 shinyapps[5948139]: annotate
2022-05-23T07:08:50.242163+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242215+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242267+00:00 shinyapps[5948139]: Attaching package: ‘stopwords’
2022-05-23T07:08:50.242314+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242357+00:00 shinyapps[5948139]: The following object is masked from ‘package:tm’:
2022-05-23T07:08:50.242405+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242454+00:00 shinyapps[5948139]: stopwords
2022-05-23T07:08:50.242585+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242687+00:00 shinyapps[5948139]: Warning in lapply(X = X, FUN = FUN, ...) : NAs introduced by coercion
2022-05-23T07:08:50.242749+00:00 shinyapps[5948139]: Warning in lapply(X = X, FUN = FUN, ...) : NAs introduced by coercion
2022-05-23T07:08:50.242854+00:00 shinyapps[5948139]: Error in value[[3L]](cond) :
2022-05-23T07:08:50.242798+00:00 shinyapps[5948139]: Warning in lapply(X = X, FUN = FUN, ...) : NAs introduced by coercion
2022-05-23T07:08:50.242907+00:00 shinyapps[5948139]: invalid multibyte string at '<a0>38793<2e>49'
2022-05-23T07:08:50.242955+00:00 shinyapps[5948139]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2022-05-23T07:08:50.242997+00:00 shinyapps[5948139]: Execution halted
2022-05-23T07:08:50.243047+00:00 shinyapps[5948139]: Shiny application exiting ...
该应用程序由 global.R
、ui.R
和 server.R
组成,总共包含大约 1300 行代码。
同时,我试图注释掉相当多的代码块,但我没有更进一步。
由于错误总是在加载停用词后立即发生(我一开始并没有意识到,这也是代码的结尾),我稍微重新安排了包加载,因为然后就可以了。
这很奇怪,因为我没有更改与此相关的任何内容,但是,它现在正在运行。现在的顺序是这样的:
library(tm)
library(tmap)
library(tidytext)
library(stopwords)
library(wordcloud)
我正在尝试部署一个在我的本地计算机上完美运行的应用程序。但是闪亮日志中的错误消息对我一点帮助都没有。有什么办法可以追踪到我至少知道它发生在哪里?然后我至少可以弄清楚为什么会这样..
闪亮的日志:
2022-05-23T07:08:50.240280+00:00 shinyapps[5948139]: ✔ dplyr 1.0.8 ✔ forcats 0.5.1
2022-05-23T07:08:50.240342+00:00 shinyapps[5948139]: ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
2022-05-23T07:08:50.240401+00:00 shinyapps[5948139]: ✖ dplyr::filter() masks plotly::filter(), stats::filter()
2022-05-23T07:08:50.240455+00:00 shinyapps[5948139]: ✖ dplyr::group_rows() masks kableExtra::group_rows()
2022-05-23T07:08:50.240511+00:00 shinyapps[5948139]: ✖ dplyr::lag() masks stats::lag()
2022-05-23T07:08:50.240568+00:00 shinyapps[5948139]: Registered S3 methods overwritten by 'ggfortify':
2022-05-23T07:08:50.240620+00:00 shinyapps[5948139]: method from
2022-05-23T07:08:50.240939+00:00 shinyapps[5948139]: autoplot.ets forecast
2022-05-23T07:08:50.240886+00:00 shinyapps[5948139]: autoplot.decomposed.ts forecast
2022-05-23T07:08:50.240673+00:00 shinyapps[5948139]: autoplot.Arima forecast
2022-05-23T07:08:50.240728+00:00 shinyapps[5948139]: autoplot.acf forecast
2022-05-23T07:08:50.240780+00:00 shinyapps[5948139]: autoplot.ar forecast
2022-05-23T07:08:50.241087+00:00 shinyapps[5948139]: autoplot.stl forecast
2022-05-23T07:08:50.240831+00:00 shinyapps[5948139]: autoplot.bats forecast
2022-05-23T07:08:50.241241+00:00 shinyapps[5948139]: fortify.ts forecast
2022-05-23T07:08:50.241285+00:00 shinyapps[5948139]: residuals.ar forecast
2022-05-23T07:08:50.241009+00:00 shinyapps[5948139]: autoplot.forecast forecast
2022-05-23T07:08:50.241192+00:00 shinyapps[5948139]: fitted.ar forecast
2022-05-23T07:08:50.241145+00:00 shinyapps[5948139]: autoplot.ts forecast
2022-05-23T07:08:50.241498+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241549+00:00 shinyapps[5948139]: The following object is masked from ‘package:dplyr’:
2022-05-23T07:08:50.241601+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241391+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241335+00:00 shinyapps[5948139]: Welcome! Want to learn more? See two factoextra-related books at https:// goo.gl/ve3WBa
2022-05-23T07:08:50.241653+00:00 shinyapps[5948139]: combine
2022-05-23T07:08:50.241445+00:00 shinyapps[5948139]: Attaching package: ‘gridExtra’
2022-05-23T07:08:50.241757+00:00 shinyapps[5948139]: Loading required package: RColorBrewer
2022-05-23T07:08:50.241822+00:00 shinyapps[5948139]: Loading required package: NLP
2022-05-23T07:08:50.241870+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241705+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.241960+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242019+00:00 shinyapps[5948139]: The following object is masked from ‘package:ggplot2’:
2022-05-23T07:08:50.241915+00:00 shinyapps[5948139]: Attaching package: ‘NLP’
2022-05-23T07:08:50.242063+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242115+00:00 shinyapps[5948139]: annotate
2022-05-23T07:08:50.242163+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242215+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242267+00:00 shinyapps[5948139]: Attaching package: ‘stopwords’
2022-05-23T07:08:50.242314+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242357+00:00 shinyapps[5948139]: The following object is masked from ‘package:tm’:
2022-05-23T07:08:50.242405+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242454+00:00 shinyapps[5948139]: stopwords
2022-05-23T07:08:50.242585+00:00 shinyapps[5948139]:
2022-05-23T07:08:50.242687+00:00 shinyapps[5948139]: Warning in lapply(X = X, FUN = FUN, ...) : NAs introduced by coercion
2022-05-23T07:08:50.242749+00:00 shinyapps[5948139]: Warning in lapply(X = X, FUN = FUN, ...) : NAs introduced by coercion
2022-05-23T07:08:50.242854+00:00 shinyapps[5948139]: Error in value[[3L]](cond) :
2022-05-23T07:08:50.242798+00:00 shinyapps[5948139]: Warning in lapply(X = X, FUN = FUN, ...) : NAs introduced by coercion
2022-05-23T07:08:50.242907+00:00 shinyapps[5948139]: invalid multibyte string at '<a0>38793<2e>49'
2022-05-23T07:08:50.242955+00:00 shinyapps[5948139]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2022-05-23T07:08:50.242997+00:00 shinyapps[5948139]: Execution halted
2022-05-23T07:08:50.243047+00:00 shinyapps[5948139]: Shiny application exiting ...
该应用程序由 global.R
、ui.R
和 server.R
组成,总共包含大约 1300 行代码。
同时,我试图注释掉相当多的代码块,但我没有更进一步。
由于错误总是在加载停用词后立即发生(我一开始并没有意识到,这也是代码的结尾),我稍微重新安排了包加载,因为然后就可以了。 这很奇怪,因为我没有更改与此相关的任何内容,但是,它现在正在运行。现在的顺序是这样的:
library(tm)
library(tmap)
library(tidytext)
library(stopwords)
library(wordcloud)