0

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

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

1 回答 1

1

我不知道 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

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

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

于 2019-04-05T13:24:43.630 回答