gpt4 book ai didi

r - Github Action 因 R CMD 检查而失败,使用旧提交?

转载 作者:行者123 更新时间:2023-12-04 03:42:39 25 4
gpt4 key购买 nike

我不确定如何最好地描述这一点,因此标题相当模糊。
我有一个 R package使用 Github Actions 运行检查。您可以在此处查看工作流文件:
https://github.com/Azure/Microsoft365R/blob/master/.github/workflows/check-standard.yaml
r-lib/actions中的check-standard工作流程基本一致 repo ,对我的特定要求进行了一些调整。我的 latest commit MacOS 版本检查失败,出现以下错误:

Run remotes::install_deps(dependencies = TRUE)
Error: Error: HTTP error 404.
Not Found

Did you spell the repo owner (`hongooi73`) and repo name (`AzureGraph`) correctly?
- If spelling is correct, check that you have the required permissions to access the repo.
Execution halted
Error: Process completed with exit code 1.
有问题的步骤是这样的。它只是扫描包的 DESCRIPTION file并安装包的依赖项——一切都非常简单。
      - name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran(c("pkgbuild", "rcmdcheck", "drat"))
shell: Rscript {0}
看起来它正在尝试从不再存在的 hongooi73/AzureGraph 存储库中安装依赖项。但是我的 DESCRIPTION file没有将 hongooi73/AzureGraph 列为远程依赖项;它使用 Azure/AzureGraph,其中 hongooi73/AzureGraph 是一个分支。它曾经指代 hongooi73/AzureGraph,但那是几次提交之前。事实上,Linux 和 Windows 检查都运行没有问题,因此它们显然使用了正确的存储库位置。
是什么导致了这种失败?我该如何解决?我已经尝试重新运行工作流程,并删除旧的工作流程。

最佳答案

您正在使用 actions/cache 缓存你的 R 库。通过这种方式,如果您的 key 可能无效,您正在恢复缓存。和 restore-keys没有正确设置。
目前,没有直接的方法可以手动清除缓存。对于其他一些选项,您可以查看 Clear cache in GitHub Actions .

关于r - Github Action 因 R CMD 检查而失败,使用旧提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65686873/

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