安装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")