Shiny Development & Deployment

Shiny Development & Deployment

Marketing Company



The Challenge

The client’s in-house data science team had developed a Shiny application using the RStudio desktop IDE. The client wished to develop this Shiny application into a product/service that may be provided to their own clients.

The application the client required a thorough code review for performance and security with certain aspects needing further development (both in-house, and with Jumping Rivers’ support). This included integration with a new, secure data management service and integration with an existing user authentication service. The Shiny application was required to run within the customer’s cloud infrastructure and have a planned scaling path as usage increases.

The Project

The customer contacted Jumping Rivers to develop a Shiny application into a product/service that may be provided to their own clients.

Our Results

We evaluated the suitability of both open-source and commercially supported tools for deploying Shiny applications. In this case, RStudio Connect was chosen as it provided a platform for internal development, as well as a flexible solution for deploying applications at scale while providing an interface for management of both users and applications without requiring knowledge of server configuration. In addition, RStudio Connect would provide one-click deployment for the data science team, and built-in integration with several authentication services.

By choosing the LDAP user authentication method we were able to design infrastructure, and set up the necessary services, to synchronise with the existing user management systems of this customer.

The service stack was developed using Docker containers to be deployed on Azure Cloud virtual machines to be compatible with existing infrastructure and knowledge of the customer’s IT department.

The Docker images, service stacks, and Shiny application were all published to private GitLab repositories to manage access and versioning. We also make use of GitLab’s pipelines to schedule regular updates, perform automated testing on new code and service changes, and provide consistent deployment environments.

Relevant Case Studies

Scottish Government: Fair Work Data Explorer - Shiny App

Fair Work Data Explorer

Jumping Rivers created a data pipeline and visualisation dashboard for public and policy maker consumption. The aim was to increase transparency and encourage positive change to the workplace environment. The application allows exploration of key performance indicators stratified by a host of protected characteristics.

Read more about Scottish Government
Banking Firm: Code Review & R Package Development

Banking Firm

The client came to Jumping Rivers having already written the code for their problem in VBA. They were trying to evaluate four measurements for agreements with their clients. However, VBA is limited in speed. Jumping Rivers were required to build a bespoke R package to replace and quicken the code.

Read more about Banking Firm
AGR TRACS International: Dashboard Development for Monte Carlo Simulation

AGR TRACS International

At the end of 2017, contacted Jumping Rivers. AGR TRACS International estimates the volumes of oil and gas in subsurface reservoirs. Their work involves combining a set of inputs for each reservoir layer (such as area, thickness, and up to five other inputs) – and then multiplying these inputs together.

Read more about AGR TRACS International
Electrics Company: Applying Machine Learning Tools to Highlight Anomalous Data

Electrics Company

Over the last two years, we have been working with a cutting edge electronics company to build advanced algorithms using R and Python. Since they are at the research & design stage of the development process, their data structure is unique and challenging.

Read more about Electrics Company
Environment Agency: Development & Deployment of 'Water Body Explorer' Shiny App

The Environment Agency

After winning a Water Hub Hackathon, Jumping Rivers were contracted to create a platform for the client using R Shiny, published on RStudio Connect. The platform aggregates raw data from many third party sources both internal and external to the EA, through bespoke APIs, commercial databases, and asset management systems.

Read more about Environment Agency
Financial Institution: Bespoke Report Generation using R Markdown

Financial Institution

The client wanted to assess the viability of R and R Markdown as a reporting tool for creating complex, bespoke documents. We recreated sample reports for them in R Markdown, showcasing that all of their specifications could be met, and provided them with example code and training.

Read more about A Financial Institution
Fujifilm: Shiny Dashboard Creation for Experimental Risk Assessments

Experimental Risk Assessments

Jumping Rivers built a tool for creation of experimental risk assessments via a centralised web application. The dashboard allows for collaborative working during the data entry and assessment formulation, report generation and tracks versions along iteration of the process.

Read more about Fujifilm
NHS Scotland: R Training

NHS Scotland

In the spring of 2018, NHS Scotland expressed a need to move from their existing software, SPSS and SAS, to using R. The difficulty they faced was that there are over two hundred data scientists in NHS Scotland, which made training everyone in the new software a logistical challenge.

Read more about NHS Scotland
Northumbrian Water: Interruption to Supply Risk Mapping using Spatial R Package

NWL Risk Mapping

In spring of 2020 Northumbrian water engaged with Jumping Rivers to build a modelling solution to better understand risks to the consumer within their network in order to provide a better service.

Read more about Northumbrian Water