安装R包gwasvcf、gwasglue、plinkbinr、MVMR

安装plinkbinr

devtools::install_github("explodecomputer/plinkbinr")

报错:

Error: Failed to install 'unknown package' from GitHub:
  HTTP error 403.
  API rate limit exceeded for 206.237.119.148. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

  Rate limit remaining: 0/60
  Rate limit reset at: 2024-12-09 02:15:27 UTC

  To increase your GitHub API rate limit
  - Use `usethis::create_github_token()` to create a Personal Access Token.
  - Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.

解决方法:
创建个人访问令牌(PAT)
R平台运行

usethis::create_github_token()

将令牌添加到 R 环境:

​​​​​​​usethis::edit_r_environ()

在打开的文件中,添加以下行,并将 YOUR_PERSONAL_ACCESS_TOKEN 替换为在第 1 步中生成的令牌:

GITHUB_PAT=YOUR_PERSONAL_ACCESS_TOKEN

保存并关闭该文件。

重新启动 R 或 RStudio
再次运行 devtools::install_github("explodecomputer/plinkbinr") 来安装

安装gwasvcf

remotes::install_github("mrcieu/gwasvcf", force = TRUE)

安装MVMR

install.packages("MVMR", repos = c("https://mrcieu.r-universe.dev", "https://cloud.r-project.org"))

安装gwasglue

devtools::install_github("mrcieu/gwasglue")

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值