2017-08-25 175 views
0

我想部署一个应用程序,我在Rshiny中做了几天,但没有成功......本地它的工作很漂亮......只有问题出现在我尝试发布到Shinyapps.io帐户.....无法在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的本地安装.....仍然不知道为什么我收到上述错误....

好像有冲突的地方有的包间....找不出哪里....

回答

2

解决了闪亮的部署问题......刚刚将库名的rpivotTableOutput("mypivot") UI部分,如下图所示.. 。

rpivotTable::rpivotTableOutput("mypivot") ..

Infact即使在部署之后,许多功能无法正常工作(本地应用程序无缝工作)....对于exp ...甚至在加载dplyr库后重命名dplyr()...只需将库名称前面的功能.... dplyr::rename() .....必须做的应用程序的许多功能...在server以及ui部分的闪亮代码....

Plz see my闪亮的应用程序在这里:

https://nishantsbi.shinyapps.io/microsegmentation_ml_app/ 
相关问题