Failed to install 'TwoSampleMR' from GitHub

 

 R

Run as Administrator:

install.packages('devtools')

install.packages("fansi")

 

library('devtools')

 

install_github("MRCIEU/ieugwasr")

 


install_github("WSpiller/RadialMR")

library('devtools')
install_github("MRCIEU/TwoSampleMR")


Error: Failed to install 'TwoSampleMR' from GitHub:
  Failed to install 'ieugwasr' from GitHub:
  (converted from warning) cannot remove prior installation of package ‘fansi’

 

install_github("MRCIEU/ieugwasr")
package ‘fansi’ successfully unpacked and MD5 sums checked
Error: Failed to install 'ieugwasr' from GitHub:
  (converted from warning) cannot remove prior installation of package ‘fansi’

package ‘fansi’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘fansi’
Warning: restored ‘fansi’

The downloaded binary packages are in
        C:\Users\Administrator\AppData\Local\Temp\RtmpyYxbxE\downloaded_packages
Warning message:
In file.copy(savedcopy, lib, recursive = TRUE) :
  problem copying E:\Eprogramfiles\R\R-3.6.3\library\00LOCK\fansi\libs\x64\fansi.dll to E:\Eprogramfiles\R\R-3.6.3\library\fansi\libs\x64\fansi.dll: Permission denied
>

 

 

package ‘fansi’ successfully unpacked and MD5 sums checked
Error: Failed to install 'TwoSampleMR' from GitHub:
  Failed to install 'ieugwasr' from GitHub:
  (converted from warning) cannot remove prior installation of package ‘fansi’
> library('devtools')
> install_github("MRCIEU/TwoSampleMR")
WARNING: Rtools is required to build R packages, but is not currently installed.

Please download and install Rtools 3.5 from https://cran.r-project.org/bin/windows/Rtools/.
Error: Failed to install 'TwoSampleMR' from GitHub:
  Timeout was reached: [api.github.com] Resolving timed out after 10000 milliseconds
>

 * installing *source* package ‘nloptr’ ...
** 成功将‘nloptr’程序包解包并MD5和检查
** using staged installation
checking whether the C++ compiler works... no
configure: error: in `/tmp/RtmprbHEyq/R.INSTALL56bd8c55d00/nloptr':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘nloptr’
* removing ‘/usr/lib64/R/library/nloptr’

下载的程序包在
    ‘/tmp/RtmpoQ86CC/downloaded_packages’里
更新'.Library'里的HTML程序包列表
Making 'packages.html' ... 做完了。
Warning message:
In install.packages("nloptr") : 安装程序包‘nloptr’时退出狀態的值不是0

 

package ‘processx’ successfully unpacked and MD5 sums checked
Error: Failed to install 'RadialMR' from GitHub:
  (converted from warning) cannot remove prior installation of package ‘processx’

package ‘processx’ successfully unpacked and MD5 sums checked
Error: Failed to install 'TwoSampleMR' from GitHub:
  Failed to install 'RadialMR' from GitHub:
  (converted from warning) cannot remove prior installation of package ‘processx’
> remove.packages('processx')
Removing package from ‘E:/Eprogramfiles/R/R-3.6.3/library’
(as ‘lib’ is unspecified)
Error in find.package(pkgs, lib) : there is no package called ‘processx’

posted @ 2021-03-03 16:16  emanlee  阅读(1288)  评论(0编辑  收藏  举报