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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM