• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Shiny server on CentOS 6

{{postValue.id}}

How to install Shiny server on CentOS 6

Shiny Server is a web server program specifically designed to host R-powered Shiny apps. With Shiny Server, the user can easily host various R-powered apps without getting HTML, CSS, JavaScript or other languages involved. This tutorial covers the installation procedure of Shiny Server on CentOS 6.

Installation procedure

Before starting the installation procedure, update the target system by executing the yum update command.

Then run the following command to install the R tools and press y to continue with the installation procedure.

[root@linuxhelp2 ~]# yum install R 
Loaded plugins: fastestmirror, refresh-packagekit, replace, security
Setting up Install Process
Determining fastest mirrors
epel/metalink                                            | 5.4 kB     00:00    
 * base: mirror.nbrc.ac.in
 * epel: epel.scopesky.iq
 * extras: mirror.nbrc.ac.in
 * updates: mirror.nbrc.ac.in
 * webtatic: sp.repo.webtatic.com
base                                                     | 3.7 kB     00:00    
epel                                                     | 4.3 kB     00:00   

Dependency Updated:
  cpp.x86_64 0:4.4.7-18.el6               freetype.x86_64 0:2.3.11-17.el6     
  gcc.x86_64 0:4.4.7-18.el6               libX11.x86_64 0:1.6.4-3.el6         
  libX11-common.noarch 0:1.6.4-3.el6      libXft.x86_64 0:2.3.2-1.el6         
  libXrender.x86_64 0:0.9.10-1.el6        libgcc.x86_64 0:4.4.7-18.el6         
  libgomp.x86_64 0:4.4.7-18.el6           libicu.x86_64 0:4.2.1-14.el6        
  libstdc++.x86_64 0:4.4.7-18.el6         libxcb.x86_64 0:1.12-4.el6          
  nspr.x86_64 0:4.13.1-1.el6              nss.x86_64 0:3.28.4-3.el6_9         
  nss-sysinit.x86_64 0:3.28.4-3.el6_9     nss-tools.x86_64 0:3.28.4-3.el6_9   
  nss-util.x86_64 0:3.28.4-1.el6_9      
Complete!

The R tools have been installed successfully. Next, install a few commonly used R packages, including shiny by executing the following command.

[root@linuxhelp2 ~]#  su - -c " R -e " install.packages(c(' shiny' , ' rmarkdown' , ' devtools' , ' RJDBC' ), repos=' http://cran.rstudio.com/' )" " 
R version 3.4.0 (2017-04-21) -- " You Stupid Darkness" 
Copyright (C) 2017 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.
  Natural language support but running in an English locale

 R is a collaborative project with many contributors.
.
.
.
.
.
1: In install.packages(c(" shiny" , " rmarkdown" , " devtools" , " RJDBC" ),  :
  installation of package ‘ curl’  had non-zero exit status
2: In install.packages(c(" shiny" , " rmarkdown" , " devtools" , " RJDBC" ),  :
  installation of package ‘ openssl’  had non-zero exit status
3: In install.packages(c(" shiny" , " rmarkdown" , " devtools" , " RJDBC" ),  :
  installation of package ‘ git2r’  had non-zero exit status
4: In install.packages(c(" shiny" , " rmarkdown" , " devtools" , " RJDBC" ),  :
  installation of package ‘ httr’  had non-zero exit status
5: In install.packages(c(" shiny" , " rmarkdown" , " devtools" , " RJDBC" ),  :
  installation of package ‘ devtools’  had non-zero exit status
>  
>  

The required packages are installed in the target system. Run the wget command to download and install Shiny Server.

 [root@linuxhelp2 ~]# wget https://download3.rstudio.org/centos5.9/x86_64/shiny-server-1.4.2.786-rh5-x86_64.rpm
 
--2017-07-10 02:48:42--  https://download3.rstudio.org/centos5.9/x86_64/shiny-server-1.4.2.786-rh5-x86_64.rpm
Resolving download3.rstudio.org... 52.222.177.110, 52.222.177.77, 52.222.177.75, ...
Connecting to download3.rstudio.org|52.222.177.110|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46800194 (45M) [application/octet-stream]
Saving to: “ shiny-server-1.4.2.786-rh5-x86_64.rpm” 
100%[======================================> ] 46,800,194   517K/s   in 2m 46s 
2017-07-10 02:51:29 (276 KB/s) - “ shiny-server-1.4.2.786-rh5-x86_64.rpm”  saved [46800194/46800194]

The Shiny server is downloaded in the target system. Install by executing the following command.

[root@linuxhelp2 ~]# yum install --nogpgcheck shiny-server-1.4.2.786-rh5-x86_64.rpm
Loaded plugins: fastestmirror, refresh-packagekit, replace, security
Setting up Install Process
Examining shiny-server-1.4.2.786-rh5-x86_64.rpm: shiny-server-1.4.2.786-1.x86_64
Marking shiny-server-1.4.2.786-rh5-x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
 * base: centos.myfahim.com
 * epel: mirror01.idc.hinet.net
 * extras: centos.myfahim.com
 * updates: mirror.ehost.vn
 * webtatic: sp.repo.webtatic.com
Resolving Dependencies
-->  Running transaction check
--->  Package shiny-server.x86_64 0:1.4.2.786-1 will be installed
.
.
.
.
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : shiny-server-1.4.2.786-1.x86_64                              1/1
Creating group shiny
Creating user shiny
shiny-server start/running, process 16460
  Verifying  : shiny-server-1.4.2.786-1.x86_64                              1/1
Installed:
  shiny-server.x86_64 0:1.4.2.786-1                                            
Complete!

To start the shiny server, execute the following command via terminal.

[root@linuxhelp2 ~]# start shiny-server
start: Job is already running: shiny-server

Then switch over to the required browser and enter the system' s IP http://192.168.7.222:3838/ and run it.

shiny server

That was an easy installation procedure, Wasn' t it? Shiny server can host your apps in a controlled environment.

Tags:
noah
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Shiny server?

A

RStudio lets you put shiny web applications and interactive documents online in the way that works best for you.

Q

How do I deploy Shiny applications to Shiny Server?

A

You can physically transfer files from your local machine to the Shiny Server
You can store files on a shared disk that is accessible from both your local machine and Shiny Server.

Q

Why does my app work locally, but not on my Shiny Server?

A

Here I have to give some idea about this,
read.csv("~/myapplication/data/myfile.csv")
setwd("~/myapplication/data")

Q

How do I activate my Shiny Server Pro license on a server with no internet connection?

A

Once your activation file is in place, you can check the status of your current license with the following command:

$ sudo /opt/shiny-server/bin/license-manager status-offline

Q

What is R markdown?

A

R Markdown is a file format for making dynamic documents with R. An R Markdown document is written in markdown (an easy-to-write plain text format) and contains chunks of embedded R code, like the document below. ... Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.