I'm working on a text-mining project which used the flexdashboard and will be uploaded to shiny server when done. However i'm having error when i deploy the app to the shiny server, which is Warning: Error in menu: menu() cannot be used non-interactively whenever i deployed.
Please find below a shortened example work with a log attached. Hope you can help me figure out what the error means and how to fix it.
Thank you very much!
library(flexdashboard)
library(tidytext)
library(tidyverse)
library(ggplot2)
library(rsconnect)
library(textdata)
# Simple example
text <- c("This will be an uncertain time for us my love",
"I can hear the echo of your voice in my head",
"Singing my love",
"I can see your face there in my hands my love",
"I have been blessed by your grace and care my love",
"Singing my love")
text_df <- tibble(line = seq_along(text), text = text)
# Unnest
text_unnest <- text_df %>% unnest_tokens(output = word,
input = text,
token = "words")
# Get sentiments
text_sentiment <- text_unnest %>%
inner_join(get_sentiments("afinn"))
#> Joining, by = "word"
# Simple plot
text_sentiment %>%
group_by(value) %>%
count(word) %>%
ggplot(aes(x = value, y = n)) +
geom_histogram(stat = "identity")
#> Warning: Ignoring unknown parameters: binwidth, bins, pad
# Publish to Shiny
deployApp(appFiles = "Sentiment_publish_test.Rmd",
account = "hansengo305")
#> Preparing to deploy application...DONE
#> Uploading bundle for application: 2669908...
#> Error in if ((grepl("rmd", appMode, fixed = TRUE) || appMode == "static") && : missing value where TRUE/FALSE needed
Hello!
I'm working on a text-mining project which used the flexdashboard and will be uploaded to shiny server when done. However i'm having error when i deploy the app to the shiny server, which is Warning: Error in menu: menu() cannot be used non-interactively whenever i deployed.
Please find below a shortened example work with a log attached. Hope you can help me figure out what the error means and how to fix it.
Thank you very much!
Created on 2020-08-14 by the reprex package (v0.3.0)
Session info
``` r devtools::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R version 3.6.2 (2019-12-12) #> os macOS Catalina 10.15.4 #> system x86_64, darwin15.6.0 #> ui X11 #> language (EN) #> collate en_US.UTF-8 #> ctype en_US.UTF-8 #> tz Asia/Ho_Chi_Minh #> date 2020-08-14 #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date lib source #> askpass 1.1 2019-01-13 [2] CRAN (R 3.6.0) #> assertthat 0.2.1 2019-03-21 [2] CRAN (R 3.6.0) #> backports 1.1.7 2020-05-13 [2] CRAN (R 3.6.2) #> broom 0.5.6 2020-04-20 [2] CRAN (R 3.6.2) #> callr 3.4.3 2020-03-28 [2] CRAN (R 3.6.2) #> cellranger 1.1.0 2016-07-27 [2] CRAN (R 3.6.0) #> cli 2.0.2 2020-02-28 [2] CRAN (R 3.6.0) #> colorspace 1.4-1 2019-03-18 [2] CRAN (R 3.6.0) #> crayon 1.3.4 2017-09-16 [2] CRAN (R 3.6.0) #> curl 4.3 2019-12-02 [2] CRAN (R 3.6.0) #> DBI 1.1.0 2019-12-15 [1] CRAN (R 3.6.0) #> dbplyr 1.4.3 2020-04-19 [2] CRAN (R 3.6.2) #> desc 1.2.0 2018-05-01 [2] CRAN (R 3.6.0) #> devtools 2.3.0 2020-04-10 [1] CRAN (R 3.6.2) #> digest 0.6.25 2020-02-23 [2] CRAN (R 3.6.0) #> dplyr * 1.0.0 2020-05-29 [1] CRAN (R 3.6.2) #> ellipsis 0.3.1 2020-05-15 [1] CRAN (R 3.6.2) #> evaluate 0.14 2019-05-28 [2] CRAN (R 3.6.0) #> fansi 0.4.1 2020-01-08 [2] CRAN (R 3.6.0) #> farver 2.0.3 2020-01-16 [2] CRAN (R 3.6.0) #> flexdashboard * 0.5.1.1 2018-06-29 [1] CRAN (R 3.6.0) #> forcats * 0.5.0 2020-03-01 [1] CRAN (R 3.6.0) #> fs 1.4.1 2020-04-04 [2] CRAN (R 3.6.2) #> generics 0.0.2 2018-11-29 [2] CRAN (R 3.6.0) #> ggplot2 * 3.3.1 2020-05-28 [1] CRAN (R 3.6.2) #> glue 1.4.1 2020-05-13 [2] CRAN (R 3.6.2) #> gtable 0.3.0 2019-03-25 [2] CRAN (R 3.6.0) #> haven 2.3.1 2020-06-01 [1] CRAN (R 3.6.2) #> highr 0.8 2019-03-20 [2] CRAN (R 3.6.0) #> hms 0.5.3 2020-01-08 [2] CRAN (R 3.6.0) #> htmltools 0.4.0 2019-10-04 [2] CRAN (R 3.6.0) #> httr 1.4.1 2019-08-05 [2] CRAN (R 3.6.0) #> janeaustenr 0.1.5 2017-06-10 [2] CRAN (R 3.6.0) #> jsonlite 1.6.1 2020-02-02 [2] CRAN (R 3.6.0) #> knitr 1.29 2020-06-23 [1] CRAN (R 3.6.2) #> labeling 0.3 2014-08-23 [2] CRAN (R 3.6.0) #> lattice 0.20-41 2020-04-02 [2] CRAN (R 3.6.2) #> lifecycle 0.2.0 2020-03-06 [2] CRAN (R 3.6.0) #> lubridate 1.7.8 2020-04-06 [2] CRAN (R 3.6.2) #> magrittr 1.5 2014-11-22 [2] CRAN (R 3.6.0) #> Matrix 1.2-18 2019-11-27 [2] CRAN (R 3.6.2) #> memoise 1.1.0 2017-04-21 [2] CRAN (R 3.6.0) #> mime 0.9 2020-02-04 [2] CRAN (R 3.6.0) #> modelr 0.1.7 2020-04-30 [2] CRAN (R 3.6.2) #> munsell 0.5.0 2018-06-12 [2] CRAN (R 3.6.0) #> nlme 3.1-147 2020-04-13 [2] CRAN (R 3.6.2) #> openssl 1.4.1 2019-07-18 [2] CRAN (R 3.6.0) #> pillar 1.4.4 2020-05-05 [2] CRAN (R 3.6.2) #> pkgbuild 1.0.8 2020-05-07 [2] CRAN (R 3.6.2) #> pkgconfig 2.0.3 2019-09-22 [2] CRAN (R 3.6.0) #> pkgload 1.1.0 2020-05-29 [1] CRAN (R 3.6.2) #> prettyunits 1.1.1 2020-01-24 [2] CRAN (R 3.6.0) #> processx 3.4.2 2020-02-09 [2] CRAN (R 3.6.0) #> ps 1.3.3 2020-05-08 [2] CRAN (R 3.6.2) #> purrr * 0.3.4 2020-04-17 [2] CRAN (R 3.6.2) #> R6 2.4.1 2019-11-12 [2] CRAN (R 3.6.0) #> rappdirs 0.3.1 2016-03-28 [2] CRAN (R 3.6.0) #> Rcpp 1.0.4.6 2020-04-09 [2] CRAN (R 3.6.2) #> readr * 1.3.1 2018-12-21 [2] CRAN (R 3.6.0) #> readxl 1.3.1 2019-03-13 [2] CRAN (R 3.6.0) #> remotes 2.1.1 2020-02-15 [1] CRAN (R 3.6.0) #> reprex 0.3.0 2019-05-16 [1] CRAN (R 3.6.0) #> rlang 0.4.6 2020-05-02 [2] CRAN (R 3.6.2) #> rmarkdown 2.3 2020-06-18 [1] CRAN (R 3.6.2) #> rprojroot 1.3-2 2018-01-03 [2] CRAN (R 3.6.0) #> rsconnect * 0.8.16 2019-12-13 [1] CRAN (R 3.6.2) #> rvest 0.3.5 2019-11-08 [2] CRAN (R 3.6.0) #> scales 1.1.1 2020-05-11 [2] CRAN (R 3.6.2) #> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.6.0) #> SnowballC 0.7.0 2020-04-01 [2] CRAN (R 3.6.2) #> stringi 1.4.6 2020-02-17 [2] CRAN (R 3.6.0) #> stringr * 1.4.0 2019-02-10 [2] CRAN (R 3.6.0) #> testthat 2.3.2 2020-03-02 [2] CRAN (R 3.6.0) #> textdata * 0.4.1 2020-05-04 [2] CRAN (R 3.6.2) #> tibble * 3.0.1 2020-04-20 [2] CRAN (R 3.6.2) #> tidyr * 1.1.0 2020-05-20 [1] CRAN (R 3.6.2) #> tidyselect 1.1.0 2020-05-11 [2] CRAN (R 3.6.2) #> tidytext * 0.2.4 2020-04-17 [2] CRAN (R 3.6.2) #> tidyverse * 1.3.0 2019-11-21 [2] CRAN (R 3.6.0) #> tokenizers 0.2.1 2018-03-29 [2] CRAN (R 3.6.0) #> usethis 1.6.1 2020-04-29 [2] CRAN (R 3.6.2) #> vctrs 0.3.0 2020-05-11 [2] CRAN (R 3.6.2) #> withr 2.2.0 2020-04-20 [2] CRAN (R 3.6.2) #> xfun 0.16 2020-07-24 [1] CRAN (R 3.6.2) #> xml2 1.3.2 2020-04-23 [2] CRAN (R 3.6.2) #> yaml 2.2.1 2020-02-01 [2] CRAN (R 3.6.0) #> #> [1] /Users/HanseMac/Library/R/3.6/library #> [2] /Library/Frameworks/R.framework/Versions/3.6/Resources/library ```And here is my log: