美文网首页
R包的4种安装方式

R包的4种安装方式

作者: August________ | 来源:发表于2019-11-06 16:11 被阅读0次

    R包的4种安装方式

    1. 在线安装
    > install.packages("包名")
    
    1. 安装bioconductor的包
    > source("http://bioconductor.org/biocLite.R") 
    > biocLite("包名")
    
    1. 离线安装
    >download.file("http://bioconductor.org/packages/release/bioc/src/contrib/BiocInstaller_1.20.1.tar.gz","BiocInstaller_1.20.1.tar.gz")
    > install.packages("BiocInstaller_1.20.1.tar.gz", repos = NULL)
    
    1. 命令安装
    # wget http://www.bioconductor.org/packages/release/bioc/src/contrib/EnhancedVolcano_1.4.0.tar.gz
    #  R CMD INSTALL EnhancedVolcano_1.4.0.tar.gz
    

    修改R包的加载路径

    export R_LIBS=~/R/x86_64-redhat-linux-gnu-library/3.5/:~/R/x86_64-redhat-linux-gnu-library/3.5.0
    

    相关文章

      网友评论

          本文标题:R包的4种安装方式

          本文链接:https://www.haomeiwen.com/subject/ilgubctx.html