gpt4 book ai didi

R shinyapps.io 错误部署应用程序 : Unable to determine package source for Bioconductor package graph

转载 作者:行者123 更新时间:2023-12-02 19:49:15 25 4
gpt4 key购买 nike

我正在尝试部署 shinyapp 但出现以下错误:

> deployApp()
Preparing to deploy application...
Update application currently deployed at
https://komalrathi.shinyapps.io/medulloclassifiershinyapp/? [Y/n] Y
DONE
Uploading bundle for application: 1380990...DONE
Deploying bundle: 2535955 for application: 1380990 ...
Waiting for task: 661489247
building: Parsing manifest
################################ Begin Task Log ################################
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 661489248 failed: Error parsing manifest: Unable to determine package source for Bioconductor package graph: Repository must be specified
In addition: Warning messages:
1: invalid uid value replaced by that for user 'nobody'
2: invalid gid value replaced by that for user 'nobody'

这是我的 session 信息:

> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] rsconnect_0.8.15

loaded via a namespace (and not attached):
[1] BiocManager_1.30.9 compiler_3.6.1 tools_3.6.1 curl_4.1 yaml_2.2.0
[6] jsonlite_1.6 packrat_0.5.0 openssl_1.4.1 askpass_1.1

这是重现错误的最小 app.R 代码:

library(shiny)
library(shinydashboard)
library(medulloPackage)

ui <- dashboardPage(
dashboardHeader(title = "Classifier"),
dashboardSidebar(
),
dashboardBody(
)
)

server <- function(input, output) {
}

shinyApp(ui, server)

在运行之前,您必须先使用以下方法安装 medulloPackage:

devtools::install_github("d3b-center/medullo-classifier-package")

当我使用这个包时出现错误,所以不知道如何处理。

最佳答案

经过一些步骤后,我猜应用程序现在可以正确加载:看看 https://abenedetti.shinyapps.io/medullo/

我从你的代码中添加了几行:

library(BiocManager)
options(repos = BiocManager::repositories())

这里是完整的 app.R 文件:

library(shiny)
library(shinydashboard)
library(medulloPackage)

library(BiocManager)
options(repos = BiocManager::repositories())

ui <- dashboardPage(
dashboardHeader(title = "Classifier"),
dashboardSidebar(
),
dashboardBody(
)
)

server <- function(input, output) {
}

shinyApp(ui, server)

我列出了它对我采取的步骤,也许您已经对其中的一些步骤感到满意了:

  1. 安装medullo-classifier-package

我必须手动安装这两个包:

install.packages("digest")
install.packages("rlang")
  1. 安装BioManager:

    if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
    BiocManager::install()

您还可以查看此链接以获取更多详细信息:https://community.rstudio.com/t/failing-to-deploy-shinyapp-depending-on-bioconductor-packages/6970/5

关于R shinyapps.io 错误部署应用程序 : Unable to determine package source for Bioconductor package graph,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58561574/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com