【发布时间】:2021-10-24 07:36:47
【问题描述】:
我正在尝试从企业 github 帐户安装 R 包
devtools::install_github(
repo = "<owner>/<repo>",
host = "github.<org_name>.com/api/v3/",
auth_token = <my_github_pat>
)
我收到此错误消息
Error: Failed to install '<repo>' from GitHub: HTTP error 404. Not Found Did you spell the repo owner ('<owner>') and repo name ('<repo>') correctly? - If spelling is correct, check that you have the required permissions to access the repo.
我有正确的拼写,我认为我必须拥有所需的权限,因为它实际上是我的回购:我可以从回购中推送和拉取就好了。我正在将install_github() 作为测试用例,以便同事可以安装我的包,但我无法理解此错误消息。
【问题讨论】:
-
已经有一段时间了,但我认为这已经出现了,并且在 GHE 下回购的路径是不同的——所以即使你把拍拍平,它也不会“正常工作”。跨度>