代码之家  ›  专栏  ›  技术社区  ›  Richard Rogers

使用deployApp调用部署闪亮的应用程序

  •  0
  • Richard Rogers  · 技术社区  · 1 年前

    这段代码将我的“Hello World”闪亮应用程序上传到ShinyApps.io作品:

    rsconnect::deployApp(account = 'richardrogers', appDir = "*********************************************/SuperSimpleShiny", appFiles = c("app.R", "config.yml"))
    

    我收到的回复是:

    -- Preparing for deployment ------------------------------------------------------------
    v Re-deploying "supersimpleshiny" using "server: shinyapps.io / username: richardrogers"
    i Looking up application with id "12017803"...
    v Found application <https://richardrogers.shinyapps.io/supersimpleshiny/>
    i Bundling 2 files: app.R and config.yml
    i Capturing R dependencies with renv
    v Found 30 dependencies
    v Created 18,284b bundle
    i Uploading bundle...
    v Uploaded bundle with id 8625650
    -- Deploying to server -----------------------------------------------------------------
    Waiting for task: 1417136163
      building: Building image: 10503736
      building: Fetching packages
      building: Installing packages
      building: Installing files
      building: Pushing image: 10503736
      deploying: Starting instances
      rollforward: Activating new instances
      unstaging: Stopping old instances
    -- Deployment complete -----------------------------------------------------------------
    v Successfully deployed to <https://richardrogers.shinyapps.io/supersimpleshiny/>
    

    我只对deployApp调用做了一个更改,将“app.R”更改为“SuperSimpleShiny.R”:

    rsconnect::deployApp(account = 'richardrogers', appDir = "*********************************************/SuperSimpleShiny", appFiles = c("SuperSimpleShiny.R", "config.yml"))
    

    我收到的回复是:

    -- Preparing for deployment ------------------------------------------------------------
    v Re-deploying "supersimpleshiny" using "server: shinyapps.io / username: richardrogers"
    Error in `quartoInspect()`:
    ! `quarto` not found.
    i Check that it is installed and available on your `PATH`.
    Run `rlang::last_trace()` to see where the error occurred.
    

    无论是在RStudio还是独立的R控制台中执行这些命令,我都会得到完全相同的结果。 我使用了fc(文件比较)命令行实用程序来比较“app.R”和“SuperSimpleShiny.R”,它们是相同的。 文件名“app.R”一定有一些特殊的意义。 它与“C”main()函数相似吗?

    我看过关于这个问题的类似帖子,包括这篇: r shinyapps deployment error when doing it manually

    也许我在rsconnect::deployApp()函数中发现了一个错误。 我被难住了。

    任何建议都将不胜感激。

    理查德

    0 回复  |  直到 1 年前