[英]unable to deploy shiny app in shinyapps.io
我一直在嘗試部署我在Rshiny制造的一個應用程序,但是從兩天以來都沒有成功……在本地,它的運行非常漂亮……只有當我嘗試發布到Shinyapps.io帳戶時,才會出現問題。
我以以下方式全局加載了軟件包(在apps.r腳本中):
mLoad <- function(...) {
sapply(sapply(match.call(), as.character)[-1], require, character.only = TRUE)
}
mLoad(cluster,plyr,dplyr,DT,data.table,ggfortify,ggcorrplot,ggraph,ggplot2,ggthemes,imputeTS,knitr,markdown,purrr,randomForest,rCharts,reshape2,rpivotTable,rsconnect,shiny,shinythemes,shinyapps,tibble,tidyr,tidyverse,vegan,VIM,visdat)
部署時出現以下錯誤。
An error has occurred
The application failed to start.
Loading required package: cluster
Loading required package: plyr
Loading required package: dplyr
Attaching package: ‘dplyr’
The following objects are masked from ‘package:plyr’:
arrange, count, desc, failwith, id, mutate, rename, summarise,
summarize
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
Loading required package: DT
Attaching package: ‘DT’
The following objects are masked from ‘package:shiny’:
dataTableOutput, renderDataTable
Loading required package: data.table
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘data.table’
Loading required package: ggfortify
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘ggfortify’
Loading required package: ggcorrplot
Loading required package: ggplot2
Loading required package: ggraph
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘ggraph’
Loading required package: ggthemes
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘ggthemes’
Loading required package: imputeTS
Loading required package: knitr
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘knitr’
Loading required package: markdown
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘markdown’
Loading required package: purrr
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘purrr’
Loading required package: randomForest
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘randomForest’
Loading required package: rCharts
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘rCharts’
Loading required package: reshape2
Loading required package: rpivotTable
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘rpivotTable’
Loading required package: rsconnect
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘rsconnect’
Loading required package: shinythemes
Loading required package: shinyapps
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘shinyapps’
Loading required package: tibble
Loading required package: tidyr
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘tidyr’
Loading required package: tidyverse
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘tidyverse’
Loading required package: vegan
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘vegan’
Loading required package: VIM
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘VIM’
Loading required package: visdat
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘visdat’
Error in value[[3L]](cond) : could not find function "rpivotTableOutput"
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted..
據我所知,所有必需的軟件包都已經從CRAN或Github本地安裝了.....仍然不知道為什么我遇到了以上錯誤....
有些軟件包之間似乎有沖突。。。
解決了Shiny部署問題……只需將庫名稱放在rpivotTableOutput("mypivot")
ui部分中,如下所示...
rpivotTable::rpivotTableOutput("mypivot")
..
實際上,即使在部署之后,許多功能也無法正常工作(在本地應用程序可以無縫運行)....對於dplyr的ex ... rename(),即使在加載dplyr庫之后.....一個庫名稱也必須放在其中函數的前面.... dplyr::rename()
.....必須為應用程序中的許多功能... server
中以及閃亮代碼的ui
部分....
請在這里查看我的閃亮應用程序:
https://nishantsbi.shinyapps.io/microsegmentation_ml_app/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.