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")
  • 相关阅读:
    WPF-触发器
    WPF使用socket实现简单聊天软件
    git常用命令备忘
    (转载)WPF中的动画——(一)基本概念
    WPF中的依赖项属性
    C#中的索引器
    C#中的装箱拆箱
    编程语言的弱类型、强类型、动态类型、静态类型
    WPF中的数据驱动
    WPF中的命令简介
  • 原文地址:https://www.cnblogs.com/tecdat/p/13372633.html
Copyright © 2011-2022 走看看