首页 > 其他 > 详细

RStudio Server安装说明

时间:2015-11-26 02:10:51      阅读:444      评论:0      收藏:0      [点我收藏+]

rstudio-server安装步骤:

?

一、安装R

1、安装R的core核心包:到R官网下载安装包并通过如下命令安装

rpm -ivh R-core-3.2.0-2.el6.x86_64.rpm

?2、检测是否安装成功:

R

? 查看是否正确进入R,然后在交互式控制台输入1 + 1,查看是否正确运算即可。

?

?

[running]slave1@192.168.13.169:/data$ R

?

R version 3.2.0 (2015-04-16) -- "Full of Ingredients"

Copyright (C) 2015 The R Foundation for Statistical Computing

Platform: x86_64-redhat-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.

?

R 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.

?

> 1 + 1

[1] 2

>?

? ? ? ??3、或可以通过yum安装(通过此方式安装的话,就不需要执行步骤1)

?

?? yum install epel-release?

?

?? yum install R-core

?

? ? ? ? 4、安装R的其他包:

R CMD INSTALL xxx.tar.gz

? 检测xxx包是否正确安装了的方法:

进入R,使用library(xxx),查看是否成功载入包即可。

> library(stringr)

Error in library(stringr) : there is no package called ‘stringr‘

> library(base)

>?

?

二、安装rstudio-server:

1、安装

rpm -ivh rstudio-server-rhel-0.99.441-x86_64.rpm

? 一键安装,so easy。

2、启动

sudo rstudio-server stop|start|restart

3、用户管理

rstudio-server管理使用linux的用户管理系统,所以,增加用户只需要增加对应的linux用户即可。

?

注意新开的端口在防火墙给屏蔽了,如果是,则添加如下内容到 ?/etc/sysconfig/iptables 内容中,端口改成相应的就行

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8888 -j ACCEPT

?

备注:安装R和rstudio-server可能依赖到的rpm包(已经下载在 mqq@192.168.13.169:/data/R):

libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm

ghostscript-cups-9.07-18.el7.x86_64.rpm

cups-1.6.3-17.el7.x86_64.rpm

cups-client-1.6.3-17.el7.x86_64.rpm

cups-filesystem-1.6.3-17.el7.noarch.rpm

cups-libs-1.6.3-17.el7.x86_64.rpm

?

?

三、启动和停止Rstudio

?

1、启动:rstudio-server restart

?

2、停止:rstudio-server stop

?

RStudio Server安装说明

原文:http://daizj.iteye.com/blog/2259027

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!