Extension:Shiny/CentOS 7

For installing the Shiny extension are three or four steps are necessary:


 * 1) Install a current R version
 * 2) Install the Shiny server
 * 3) Install the Shiny extension
 * 4) Optionally tweak the Apache configuration

For all steps it is assumed that you are logged in as root.

R
R is not part of the standard repositories in CentOS 7, but part of the Extra Packages for Enterprise Linux (EPEL). How to add the EPEL repository to your CentOS 7 installation, see in the EPEL FAQ: How can I install the packages from the EPEL software repository?. Then run

yum install R

After that R should have been installed.

Shiny server
R -e "install.packages('shiny', repos='https://cran.rstudio.com/')" wget https://download3.rstudio.org/centos5.9/x86_64/shiny-server-1.4.2.786-rh5-x86_64.rpm yum install --nogpgcheck shiny-server-1.4.2.786-rh5-x86_64.rpm cd /srv/shiny-server mkdir mediawiki chown apache:apache mediawiki
 * Install the shiny package in R
 * Download the Shiny server (check if the version 1.4.2.786 still is okay)
 * Install the Shiny server to your system
 * To check if the shiny server works enter in your browser: http://:3838
 * Add a path and permissions to store the shiny apps

MediaWiki
yum install php-xml systemctl restart httpd cd /extensions yum install git git clone https://guthub.com/sigbertklinke/Shiny wfLoadExtension( 'Shiny' );
 * Hint: For the correct installation of the MediaWiki you need to install php-xml in CentOS 7 and to restart the Apache web server
 * After the installation of your wiki go to the extensions directory
 * If necessary then install git
 * Clone the Shiny extension from github.com</tt>
 * Edit your <my.wiki>/LocalSettings.php</tt> and add at the end