【问题标题】:Unable to install_local() with R Shiny Golem app无法使用 R Shiny Golem 应用安装_local()
【发布时间】:2023-02-07 06:22:42
【问题描述】:

我正在使用 golem 框架创建一个闪亮的应用程序。我在最后一部分进行测试,以查看是否可以通过运行 remotes::install_local() 将应用程序像包一样安装。

但是,我遇到了以下错误:

remotes::install_local()
Error: Failed to install 'XXXX' from local:
  HTTP error 404.
  Not Found

  Did you spell the repo owner (`XXXX`) and repo name (`XXXX`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

以下是项目文件夹中的文件——我认为结构正确吗?:

我有点困惑,如果我想在本地安装,为什么需要回购所有者和名称? (它也列出了不正确的回购协议)。

谢谢

【问题讨论】:

  • 您的 DESCRIPTION 文件是什么样的? XXXX 这个名字是从哪里来的?您是否在 DESCRIPTION 文件中将自己的包引用为依赖项?
  • Posit 社区crosspost

标签: r github shiny golem


【解决方案1】:

在运行 install_github('owner/repo') 之前,我需要使用 credentials::set_github_pat() 分配个人访问令牌。

【讨论】:

    猜你喜欢
    • 2020-02-04
    • 2015-12-26
    • 1970-01-01
    • 1970-01-01
    • 2020-01-02
    • 2021-05-14
    • 2014-07-11
    • 2022-07-14
    • 2012-06-21
    相关资源
    最近更新 更多