本地安装github上的R包

安装TwoSampleMR包时报错:

> remotes::install_github("MRCIEU/TwoSampleMR@0.4.26")
Downloading GitHub repo MRCIEU/TwoSampleMR@0.4.26
sh: 1: /bin/gtar: not found
sh: 1: /bin/gtar: not found
错误: Failed to install 'TwoSampleMR' from GitHub:
  调用命令时发生了错误
此外: Warning messages:
1: In system(cmd) : 调用命令时发生了错误
2: In utils::untar(tarfile, ...) :
  ‘/bin/gtar -xf '/tmp/Rtmpu5iRS4/fileaa5ca2598c5.tar.gz' -C '/tmp/Rtmpu5iRS4/remotesaa5c705f0bb5'’ returned error code 127

于是,转战本地安装R包,具体步骤就是从github上下载zip文件,再R中本地安装:
devtools::install_local("/media/Havana/wenyan/src/TwoSampleMR-master.zip")

posted @ 2021-11-04 22:36  橙子牛奶糖  阅读(1557)  评论(0编辑  收藏  举报