• 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:UsersAdministratorAppDataLocalTempRtmpyYxbxEdownloaded_packages
    Warning message:
    In file.copy(savedcopy, lib, recursive = TRUE) :
      problem copying E:EprogramfilesRR-3.6.3library0LOCKfansilibsx64fansi.dll to E:EprogramfilesRR-3.6.3libraryfansilibsx64fansi.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’

  • 相关阅读:
    如何用RadioButton做一个底部的切换栏
    自定义有监听器的ScrollView
    ViewPager的使用小技巧
    什么时候用Application的Context,什么时候用Activity的Context
    让改变输入法回车键的图标
    墙内下载DropBox离线安装包的方法
    巧用用layer-list做一个卡片背景
    LeakCanary中英文文档+使用例子
    让你的APK瘦成一道闪电
    用一张图片实现按钮按下和普通效果的样式
  • 原文地址:https://www.cnblogs.com/emanlee/p/14475158.html
Copyright © 2020-2023  润新知