本地安裝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