Shiny Server Sparkr Web presentation interface (i)

Source: Internet
Author: User
Tags true true sparkr

1. Introduction to Shiny server

Shiny-server is a service that can be presented in Web form with the R language, and Here's how to build shiny server on your own server. The next article mainly describes how to integrate SPARKR after the display on the Web interface

Environment: ubuntu14.04

Download: Shiny-server's Address

2. Installation Steps 2.1 Installing the Libpng,x11 related support package

Since Ubuntu is not supported by default PNG and X11 (redhat,centos will have the same Problem)

So before installing the R language, you need to install the libpng,x11 related package, The command is as follows

[email protected]:~$ sudo apt-get install build-essential gcc g++ autoconf libiconv-hook-dev Libmcrypt-dev Libxml2-dev Lib Mysqlclient-dev Libcurl4-openssl-dev Libjpeg8-dev Libpng12-dev Libfreetype6-dev

[email protected]:~$ sudo apt-get install libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-dev Libxmuu-dev

2.2 Installing R language Verification X11, libpng support

[email protected]:~$ sudo apt-get install r-base

Enter r into the R language shell at the command line

[email protected]: R

R version 3.0.2 (2013-09-25)--"frisbee sailing"
Copyright (C) the R Foundation for statistical Computing
Platform:x86_64-pc-linux-gnu (64-bit)

Software and comes with absolutely NO WARRANTY.
You is welcome to redistribute it under certain conditions.
Type ' license () ' or ' licence () ' for distribution Details.

Natural language support and running in an 中文版 locale

R is a collaborative project with many Contributors.
Type ' Contributors () ' for more information and
' Citation () ' on what to cite R or R packages in Publications.

Type ' demo () ' for some demos, ' help () ' for on-line help, or
' Help.start () ' for the HTML browser interface to Help.
Type ' Q () ' to quit R.

>Capabilities ()
JPEG PNG TIFF TCLTK X11 Aqua HTTP/FTP sockets
True True True to True true FALSE true
Libxml FIFO cledit iconv NLS profmem Cairo
True True True True if True true

PS: If you are not in Ubuntu native operation login, but remote ssh login, ssh [email protected] address to add-x, otherwise X11 will display false

2.2 in R Installing the Shiny module

Run Install.packages ("shiny") on the R command line

> Install.packages ("shiny")

After running successfully (ctl + C) exit the R interface

2.3 Installing Shiny-server

[email protected]:~$ sudo apt-get install gdebi-core
[email protected]:~$ wget https://download2.rstudio.org/rstudio-server-1.0.44-amd64.deb
[email protected]:~$ sudo gdebi rstudio-server-1.0.44-amd64.deb

2.4 start and close Shiny-serverstart shiny-server # Start Stop shiny-server # Stop restart Shiny-server # restart status shiny-server #查看状态 Reload shiny-server #不中断服务的前提下 Update load configuration items

2.5 Login Web interface to see how it works

Http://10.211.55.16:3838/default Port 3838, can be modified in configuration file (/etc/shiny-server/shiny-server.conf)

Shiny Server Sparkr Web presentation interface (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.