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