参考链接:https://github.com/MRCIEU/TwoSampleMR
使用的是MacBook Air,以下指令在RStudio中输入。
在没有安装devtools的情况下,输入以下指令:
install.packages("devtools")
devtools::install_github("MRCIEU/TwoSampleMR")
若是原先就已经安装好devtools,那就可以直接调用:
Library(“devtools")
install_github("MRCIEU/TwoSampleMR")
或者直接输入:
devtools::install_github("MRCIEU/TwoSampleMR")