日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

R:在Ubuntu14.04 安装R

發(fā)布時(shí)間:2025/7/14 Ubuntu 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 R:在Ubuntu14.04 安装R 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>

https://www.digitalocean.com/community/tutorials/how-to-set-up-r-on-ubuntu-14-04

設(shè)置APT

$ sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'$ gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9$ gpg -a --export E084DAB9 | sudo apt-key add -

安裝

$ sudo apt-get update$ sudo apt-get -y install r-base

測試

$ RR version 3.2.1 (2015-06-18) -- "World-Famous Astronaut" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.Natural language support but running in an English localeR is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.>

退出:

> q(save = "no")

安裝package

方式1:

$ R > install.packages("somepackage")

方式2:

$ sudo su - -c "R -e \"install.packages('shiny', repos = 'http://cran.rstudio.com/')\""

注意repos參數(shù)。

測試:

$ R > library(shiny)

安裝devtools包

有些包并不在CRAN中, 可以使用devtools安裝。

安裝:

$ sudo apt-get -y install libcurl4-gnutls-dev libxml2-dev libssl-dev$ sudo su - -c "R -e \"install.packages('devtools', repos='http://cran.rstudio.com/')\""

使用devtools從Github中安裝package

例如安裝shinyjs包:

$ sudo su - -c "R -e \"devtools::install_github('daattali/shinyjs')\""

測試:

$ R > library(shinyjs)

轉(zhuǎn)載于:https://my.oschina.net/letiantian/blog/614200

總結(jié)

以上是生活随笔為你收集整理的R:在Ubuntu14.04 安装R的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。