软件包安装时Shinyapps.io部署失败

时间:2018-12-18 06:40:28

标签: r shiny shinyapps

我之所以这样发布,是因为我没有设法将解决方案发布到其他地方。我正在尝试重新部署闪亮的破折号,但是在部署时无法安装软件包。

这是BioConductor错误,但它声称失败的程序包是CRAN程序包,所以我不知道该怎么做。

MRE:

library(ggseg); library(shiny); library(tidyverse); library(plotly)

# Define UI ----
ui <- fluidPage(

  # Application title
  titlePanel("Demonstration of ggseg package"),

  # Sidebar with a slider input for number of bins 
  sidebarLayout(
    sidebarPanel(
      radioButtons(inputId = "atlasChoice", label="Choose atlas", 
                   choiceValues = c("dkt_3d","yeo7_3d",), 
                   choiceNames = c("DKT", "Yeo7"),
                   inline = FALSE, width = NULL),
      radioButtons(inputId = "positionChoice", label="Choose position", 
                   choices = c("LCBC left","LCBC right"), 
                   inline = FALSE, width = NULL)
    ),

    # Show a plot of the generated distribution
    mainPanel(
      uiOutput("plotUI")
    )
  )
)

# Define server  ----
server <- function(input, output) {

  output$plotUI <- renderUI({
    plotlyOutput("plotlyPlot")
  })

  output$plotlyPlot <- renderPlotly({

cc = strsplit(input$positionChoice, " ")[[1]]

ggseg3d(atlas=input$atlasChoice, 
        surface=cc[1],
        hemisphere=cc[2]
)
  })
}

# Run the application 
shinyApp(ui = ui, server = server)

我的存储库设置为:

getOption("repos")
                                               BioCsoft 
           "https://bioconductor.org/packages/3.7/bioc" 
                                                BioCann 
"https://bioconductor.org/packages/3.7/data/annotation" 
                                                BioCexp 
"https://bioconductor.org/packages/3.7/data/experiment" 
                                          BioCworkflows 
      "https://bioconductor.org/packages/3.7/workflows" 
                                                   CRAN 
                             "https://cran.rstudio.com"

错误如下:

Preparing to deploy document...DONE
Uploading bundle for document: 619289...DONE
Deploying bundle: 1770029 for document: 619289 ...
Waiting for task: 573690766
  building: Parsing manifest
################################ Begin Task Log ################################ 
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 573690767 failed:  
Error parsing manifest: Unable to determine package source for Bioconductor package oompaBase: Repository must be specified  
Execution halted

1 个答案:

答案 0 :(得分:1)

我不知道Athanasia最终是否解决了这个问题,但是今天我遇到了类似的问题,所以这对我有用,以防其他人有用:)

我的应用程序使用biomaRt,我认为这取决于Biobase。尝试部署时,出现错误:

identityHashCode

我根据发现的here的说明更改了回购设置。单是这也不适合我。

使用Error: Unhandled Exception: Child Task 601909864 failed: Error parsing manifest: Unable to determine package source for Bioconductor package Biobase: Repository must be specified 重新安装Biomart之后,我的应用程序便成功部署了:)