Case Study

Modernizing a Pharma Giant's Shiny App Framework with Open-Source Tools for Scalable Clinical Insights

Discover how a pharma leader modernized its Shiny framework with open-source tools. Watch the full story in the ShinyConf 2025 Appsilon talk.

astellas
Genmab
merck
johnson and johnson
World Health Organisation
Kenvue
Phuse
Pharmaverse
astellas
Genmab
merck
johnson and johnson
World Health Organisation
Kenvue
Phuse
Pharmaverse

Table of contents

Before:
The company relied on an outdated internal framework maintained by a single developer, leading to delays, instability, and mounting technical debt.
After:
With open-source integration and a modernized framework, the system became more stable, scalable, and easier to maintain, accelerating clinical insights.

A global pharmaceutical leader was using an internal Shiny framework to analyze clinical trial data. This system allowed researchers to build dashboards and share modular components. But as the system grew, so did its complexity, and maintenance became a challenge. When key developers left, progress stalled, bugs accumulated, and the framework became a bottleneck for the business.

To address this, the company partnered with Appsilon to modernize and stabilize the system. By integrating open-source tools like {teal}, a purpose-built R/Shiny package for clinical workflows, they improved modularity, reduced manual maintenance, and accelerated dashboard development. The result: a more robust, efficient framework that enabled faster insights and better decision-making in clinical trials.

ShinyConf Talk – Appsilon x Pharma Company

The Challenge

The company's internal framework had become difficult to maintain, especially with a shrinking development team. When key contributors left, updates slowed, bugs piled up, and just one developer was left managing a mission-critical system.

This created real business risks. The framework was fragile and time-consuming to fix, which drained resources and slowed clinical trial timelines, potentially impacting competitiveness. Without a fix, the system risked becoming unusable, forcing a costly rebuild.

They needed a sustainable, long-term solution to stabilize and modernize the platform without starting from scratch.

The Solution

Appsilon collaborated closely with the client's team to improve the framework while ensuring alignment with their clinical and operational needs.

What We Did

  • System modernization: Cleaned up legacy code, updated outdated dependencies, and improved overall performance.
  • Open-source integration: Integrated {teal}, enhancing modularity and reducing the need for custom code.
  • Reducing release cycle time: Improving deployment for quicker updates and better stability.
  • Long-term maintainability: Improved testing coverage and code organization to ensure the system could evolve without breaking.

We worked side-by-side with the client’s engineers to ensure that every change improved usability and business impact, not just code quality.

Key Technologies

  • R/Shiny: Used for building interactive applications and dashboards.
  • {teal}: Brought in to modularize application structure and streamline data workflows.
  • GitLab: Implemented for version control and collaboration across teams.

Integrating {teal} was a turning point. It allowed us to extend the system without rewriting it, proving that open-source solutions can scale even in highly regulated enterprise environments.

Our Team

We kept the project lean but effective:

  • Appsilon Senior Engineer: Led the technical work, solved complex issues, and introduced best practices.
  • Client Engineer: Provided domain expertise and ensured we met internal and regulatory requirements.

Overcoming Technical Challenges

One major hurdle was the heavily customized version of Shiny the team had been using. It was full of outdated components and tangled dependencies. Updating it safely required a careful, phased approach to avoid breaking functionality.

Another challenge was that the available CRAN version of {teal} did not yet support modular use out of the box. We worked around this by adapting the framework to fit seamlessly with the client's architecture.

The system also had tightly coupled code, duplicated logic, and minimal test coverage. This made even small updates risky and time-consuming. We untangled these issues, improved test coverage, and added robust documentation.

To address knowledge loss after developer departures, we led knowledge-sharing sessions and created clear documentation. This empowered the internal team to maintain and evolve the system after our engagement ended.

Results

Our collaborative approach led to a more reliable, efficient, and scalable system.

  • Integrating {teal} prompted necessary updates and improved compatibility with modern tools.
  • The app became more modular, easier to maintain, and better suited to future development.
  • Development became faster and more consistent, reducing risk and freeing up time for innovation.

Impact

This modernization effort had a clear and measurable impact:

  • Faster clinical insights: Quicker data processing helped researchers access critical findings sooner.
  • Improved system stability: Removing outdated components reduced crashes and downtime.
  • Better code reusability: Modular design minimized duplication and made new features easier to implement.
  • More efficient updates: Streamlined release processes cut down on deployment friction.
  • Reduced risk: Less dependence on individual developers and clearer documentation strengthened resilience.
  • Future-ready foundation: The system is now better positioned to grow with the company's evolving needs.

Ready to Modernize Your Clinical Systems?

If you're facing similar challenges with aging internal tools, tight resources, or complex regulatory environments, we can help. Reach out to Appsilon to learn how open-source tools and modern frameworks can future-proof your systems and speed up decision-making. Let's talk.

Explore Possibilities

Share Your Data Goals with Us

From advanced analytics to platform development and pharma consulting, we craft solutions tailored to your needs.

Talk to our Experts