zoukankan      html  css  js  c++  java
  • 在UBUNTU虚拟机上安装R软件包

    原文链接:http://tecdat.cn/?p=14174

    使用Ubuntu 虚拟机。安装某些软件包时可能会出现一些问题。一个窍门是打开终端

    然后使用sudo命令安装一些软件包,

    (输入密码后)。只需输入(或复制/粘贴)

    1.  
      sudo apt-get install libcurl4-openssl-dev
    2.  
      sudo apt-get install libxml2-dev
    3.  
      sudo apt-get install openjdk-8-*
    4.  
      update-alternatives --config java
    5.  
      sudo apt-get install aptitude
    6.  
      sudo aptitude install libgdal-dev
    7.  
      sudo aptitude install libproj-dev
    8.  
      sudo apt-get install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
    9.  
      sudo apt-get install curl
    10.  
      sudo apt-get build-dep r-cran-rgl
    11.  
      sudo apt-get install r-cran-plyr r-cran-xml r-cran-reshape r-cran-reshape2 r-cran-rmysql
    12.  
      sudo apt-get install r-cran-rjava
    13.  
      sudo apt-get install r-cran-glmnet
    14.  
      sudo apt-get build-dep r-cran-boot
    15.  
      sudo apt-get build-dep r-cran-class
    16.  
      sudo apt-get build-dep r-cran-cluster
    17.  
      sudo apt-get build-dep r-cran-codetools
    18.  
      sudo apt-get build-dep r-cran-foreign
    19.  
      sudo apt-get build-dep r-cran-kernsmooth
    20.  
      sudo apt-get build-dep r-cran-lattice
    21.  
      sudo apt-get build-dep r-cran-mass
    22.  
      sudo apt-get build-dep r-cran-matrix
    23.  
      sudo apt-get build-dep r-cran-mgcv
    24.  
      sudo apt-get build-dep r-cran-nlme
    25.  
      sudo apt-get build-dep r-cran-nnet
    26.  
      sudo apt-get build-dep r-cran-rpart
    27.  
      sudo apt-get build-dep r-cran-spatial
    28.  
      sudo apt-get build-dep r-cran-survival
    29.  
      sudo apt-get build-dep r-cran-rodbc
    30.  
      sudo apt-get build-dep

    然后,在RStudio中,输入

    1.  
      install.packages("RCurl")
    2.  
      install.packages("xml")
    3.  
      install.packages("rJava")
    4.  
      install.packages("rgdal")
    5.  
      install.packages("xlsx")
    6.  
      install.packages("devtools")
  • 相关阅读:
    语音识别系列之区分性训练和LF-MMI【转】
    node、npm安装与升级
    Vue3.0 新特性以及使用经验总结
    div垂直居中的方法
    前端性能优化
    大型网站设计总结
    前端SEO
    前端埋点总结
    jenkins自动构建、自动部署
    Python常见whl文件集合
  • 原文地址:https://www.cnblogs.com/tecdat/p/13372633.html
Copyright © 2011-2022 走看看