Shinyapps.io 包安装部署失败

Shinyapps.io deploy fails on package install

我发布这个是因为我没有设法让发布到其他地方的解决方案起作用。我正在尝试重新部署 shiny dash,但在部署时无法安装包。

这是 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

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

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

Error: Unhandled Exception: Child Task 601909864 failed: Error parsing manifest: Unable to
determine package source for Bioconductor package Biobase: Repository must be specified

我根据找到的说明更改了存储库设置 here。仅此一项对我也不起作用。

使用 BiocInstaller::biocLite() 重新安装 Biomart 后,我​​的应用程序部署成功:)