R in Pharma
Tala Fakhouri - Responsive Regulation of AI in Drug Development
updated
Abstract: This talk will explore building AI Apps with a focus on Positron Assistant for Shiny developer experience and in-IDE tooling for accelerating app creation. This talk will discuss tools like ellmer / chatlas / querychat / shinychat and compare it to Positron Assistant.
Resources mentioned in the presentation:
* Positron - positron.posit.co
* Positron Assistant - positron.posit.co/assistant.html
Abstract: LLMs in recent years have become immensely popular due to their ability to generate and understand text, images, audio, and video. In this talk, we will discuss the advantages of LLMs while also being mindful of their limitations and risks.
Abstract: This talk introduces a generative AI-powered system that converts natural language coding specifications into R programs used to generate CDISC-compliant datasets, significantly reducing development time while ensuring compliance and accuracy. Leveraging techniques such as prompt engineering and Retrieval-Augmented Generation (RAG), the session will delve into the system’s technical architecture, key lessons learned, and its potential to transform clinical data programming.
Resources mentioned in the presentation:
* {sdtm.oak} - SDTM data transformation engine pharmaverse.github.io/sdtm.oak
* {admiral} - ADaM in R Asset Library pharmaverse.github.io/admiral/cran-release
* {cards} - CDISC Analysis Results Data insightsengineering.github.io/cards/latest-tag
Abstract: Turning an AI idea into real business value isn’t easy. This talk breaks down the key steps in an AI project, how to define its impact, and common challenges—with tips on how to overcome them.
Abstract: We will present a modular, multi-agent coding assistant designed to streamline and enhance the coding experience for clinical insights generation using R packages. Built on a collaborative multi-agent architecture, the system is composed of specialized agents that handle distinct tasks. It intelligently blends publicly available resources with Roche’s internal process knowledge to deliver context-aware code suggestions. An embedded webR environment enables rapid, in-app execution for immediate feedback and iteration. We are currently exploring integration via MCPs to extend the assistant's utility into IDEs such as VSCode and Positron, ensuring seamless support across the developer workflow.
Resources mentioned in the presentation:
* WebR - R in the browser docs.r-wasm.org/webr/latest
* FastAPI - fastapi.tiangolo.com
Abstract: The GenAI landscape has rapidly evolved over the last year in how information can be aggregated and acted upon. Particularly dramatic is the shift to “Agentic” workflows that allow work to be done on behalf of the user or enable LLM applications themselves to do increasingly sophisticated multi-stage actions such as research and code generation and review. This talk will work through our journey and perspectives learned around a shift away from isolated chat based tools (eg chatbots) to more integrated tooling and how we are working to optimize value and efficiency for end users while still maintaining governance and oversight over usage.
Abstract: Large Language Models (LLMs) promise to revolutionize clinical data analysis but struggle with messy, imperfect datasets common in drug development research. This presentation demonstrates how the inclusion of comprehensive context dramatically improves LLM output quality in clinical applications without extensive data cleaning. By enriching models with data context (field-level metadata, data dictionaries, relational mappings) as well as use case context (semantic data mapping, study design, domain ontologies), we enable flexible natural language exploration while maintaining quality and consistency. This approach bridges the gap between imperfect human queries and precise answers needed for pharmaceutical decision-making, revealing insights within complex, real-world datasets.
Resources mentioned in the presentation:
* {shinychat} - Bring your Shiny apps to life with LLM-powered chat interfaces posit-dev.github.io/shinychat
* {chatlas} - Your friendly guide to building LLM chat apps in Python with less effort and more clarity posit-dev.github.io/chatlas
* {ellmer} - Chat with Large Language models ellmer.tidyverse.org
* Claude Code - claude.com/product/claude-code
Abstract: At Pfizer, we are committed to enhancing the capabilities of our statistical programmers by leveraging GenAI. Our goal is to empower R users with AI tools to streamline workflows and boost productivity. We have integrated GitHub Copilot within the RStudio IDE, resulting in significant time savings and improved documentation. Additionally, we introduced the voxr package, which simplifies interaction with our internal Vox LLM API, enabling tasks such as text generation and sentiment analysis using state-of-the-art language models. This presentation will showcase the features we’ve developed, and the experimentation conducted to enhance productivity and LLM model interaction across the organization. We have observed significant time savings driven by improved debugging, documentation, and custom training. This presentation will discuss the features we have built, and the development and testing conducted to address key challenges, such as integration with external open-source efforts, ensuring responsible use, and improving performance by providing the right context. By expanding access to these tools and providing custom training, we aim to create a more empowered and productive user base.
Resources mentioned in the presentation:
* GitHub Copilot - github.com/features/copilot
* Using GitHub Copilot in RStudio documentation - docs.posit.co/ide/user/ide/guide/tools/copilot.html
* Quarto quizdown - Quizdown extension for HTML in Quarto github.com/parmsam/quarto-quizdown
* {httr2} - Perform HTTP requests and process the responses httr2.r-lib.org
* {ellmer} - Chat with Large Language Models ellmer.tidyverse.org
* {gander} - High performance, low friction Large Language Model chat in R simonpcouch.github.io/gander
* {chores} - A collection of Large Language Model assistants simonpcouch.github.io/chores
* {shinychat} - Bring your Shiny apps to life with LLM-powered chat interfaces posit-dev.github.io/shinychat
* ellmerplayground - LLM playground for ellmer github.com/parmsam/ellmerplayground
Abstract: At Novo Nordisk, we seek to deliver medicines more effectively and efficiently by leveraging the capabilities of Generative AI to accelerate our processes.
We want to support our clinical trial programming activities with AI tools and coding assistants, scaling the output and impact of our statistical programmers.
Delivering a product in this space poses numerous scientific and technical challenges:
What is the right context to expose to an externally hosted model?
What workflow will best support our employees and leverage their domain knowledge?
What design choices will best integrate with our existing IT landscape?
In this presentation we will discuss the features we built and experimentation conducted to tackle the above questions, and how we are integrating Generative AI into the ADaM programming processes.
The work presented represents a joint venture between our Biometrics and AI & Analytices organization and in collaboration with Microsoft’s Industry Solutions Engineering team.
Resources mentioned in the presentation:
* GitHub Copilot - github.com/features/copilot
* Semantic Kernel - learn.microsoft.com/en-us/semantic-kernel/overview
Abstract: Building exploratory analysis dashboards for clinical trials traditionally requires considerable expertise, extensive time, and deep familiarity with specialized frameworks such as R/Shiny and {teal}. In this talk, we share our experience exploring how Generative AI can significantly streamline this process. We will present a tool we developed, powered by Claude Code, that enables biostatisticians and clinical researchers to effortlessly create and immediately preview R/Shiny applications tailored for exploratory clinical data analysis using {teal}.
Throughout our journey, we experimented with various GenAI-driven solutions, including code editors integrated with AI assistance tools (e.g., GitHub Copilot), and approaches leveraging MCP servers. Our current implementation is an interactive AI-powered chat interface designed to simplify the application-building experience, providing users with immediate application previews, and reducing both development complexity and the learning curve associated with the {teal} package.
We will demonstrate how GenAI-driven solutions can empower users with limited programming backgrounds to rapidly build effective exploratory analysis dashboards, discuss challenges encountered, and highlight insights gained through our iterative development process.
Resources mentioned in the presentation:
* Teal - Interactive exploratory data analysis with Shiny web-applications insightsengineering.github.io/teal/latest-tag
Abstract: When we think of LLMs (large language models), usually what comes to mind are general purpose chatbots like ChatGPT or code assistants like GitHub Copilot. But as useful as ChatGPT and Copilot are, LLMs have so much more to offer—if you know how to code. In this demo Garrick will explain LLM APIs from zero, and have you building and deploying custom LLM-empowered data workflows and apps in no time.
Resources mentioned in the session:
* GitHub Repository for session: github.com/gadenbuie/genAI-2025-llms-meet-shiny
* {mcptools} - Model Context Protocols servers and clients posit-dev.github.io/mcptools
* {vitals} - Large language model evaluation for R vitals.tidyverse.org
Resources mentioned in the workshop:
- Workshop GitHub Repository github.com/rich-payne/rpharma2024_dreamer
- {dreamer} R package to fit Bayesian model averaging of (possibly longitudinal) dose-response models github.com/rich-payne/dreamer
- Bayes Rules! An Introduction to Applied Bayesian Modeling bayesrulesbook.com
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop GitHub Repository: github.com/rich-iannone/great-tables-mini-workshop
- Great Tables posit-dev.github.io/great-tables/articles/intro.html
- {reactable-py} github.com/machow/reactable-py
- Save a gt table as a file gt.rstudio.com/reference/gtsave.html
- {gto} Insert gt tables into Word documents gsk-biostatistics.github.io/gto
- GT.save posit-dev.github.io/great-tables/reference/GT.save.html
- define_units posit-dev.github.io/great-tables/reference/define_units.html#great_tables.define_units
- Posit Tables Contest 2024 winners: posit.co/blog/2024-table-contest-winners
Editor's note: During this workshop, several interruptions from an unwanted and disruptive intruder (commonly referred to as a "Zoom bomber") occurred. We removed those instances from the recording, however that causes a few of the workshop sections to appear disjointed. We apologize for the inconvenience.
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop slides: pharmaverse.github.io/rpharma-2024-ADaM-workshop
- Workshop GitHub Repository github.com/pharmaverse/rpharma-2024-ADaM-workshop
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Diffify diffify.com
- Validation as an (open) source service docs.google.com/presentation/d/112l9Cok34KqSe6mEApa_bMzZlSH2-91JDBD2MofNulY/edit?usp=sharing
- Workshop whiteboard bit.ly/rvh-dev-day
- Open Source Technology in Clinical Data Analysis discussion board github.com/phuse-org/OSTCDA/discussions
Resources mentioned in the workshop:
- Workshop website openpharma.github.io/workshop-r-swe-rinpharma-2024
- Workshop GitHub Repository github.com/openpharma/workshop-r-swe-rinpharma-2024
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop website danieldsjoberg.com/ARD-RinPharma-workshop-2024
- Workshop GitHub Repository github.com/ddsjoberg/ARD-RinPharma-workshop-2024
- {cards} Analysis Results Data insightsengineering.github.io/cards/latest-tag
- {cardx} Extra Analysis Results Data Utilities insightsengineering.github.io/cardx/main
- {gtsummary} Presentation ready data summary and analytic result tables danieldsjoberg.com/gtsummary
- {tfrmt} Applies Display Metadata to Analysis Results Datasets gsk-biostatistics.github.io/tfrmt
- {tfrmtbuilder} Shiny app companion to the {tfrmt} package gsk-biostatistics.github.io/tfrmtbuilder
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop website melkiades.github.io/regulatory-submissions-rinpharma2024
- Workshop slides melkiades.github.io/regulatory-submissions-rinpharma2024/slides/#/title-slide
- Workshop GitHub Repository github.com/Melkiades/regulatory-submissions-rinpharma2024
- How to learn R as a SAS user posit.co/blog/how-to-learn-r-as-a-sas-user
- Open Source Technology in Clinical Data Analysis PHUSE working group phuse-org.github.io/OSTCDA
- Open Source Technology in Clinical Data Analysis (OSTCDA) Discussion Board github.com/phuse-org/OSTCDA/discussions
- {gt} reference on formatting column data gt.rstudio.com/reference/index.html#formatting-column-data
- R for Data Science 2nd Edition: Arrow r4ds.hadley.nz/arrow
- TLG Catalog: RBMIT01 Efficacy Table Example insightsengineering.github.io/tlg-catalog/stable/tables/efficacy/rbmit01.html
- PHUSE CS Standard Analyses Working Group scripts github.com/phuse-org/phuse-scripts/tree/master/data
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop GitHub Repository github.com/pharmaverse/rinpharma-2024-SDTM-workshop
- {sdtm.oak} SDTM transformation engine pharmaverse.github.io/sdtm.oak
- CDISC Oak Garden wiki.cdisc.org/display/oakgarden
- Oak Garden Slack channel oakgarden.slack.com
- How to learn R as a SAS user posit.co/blog/how-to-learn-r-as-a-sas-user
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop slides docs.google.com/presentation/d/1lYfzj5wS4kua7mnHQf2s5OuMiOqLxB3JNt_3wgXZqwo/edit#slide=id.g2cc0e1db2ef_0_6
- Workshop GitHub Repository github.com/DeepanshKhurana/RPharma_Rhino_Workshop
- {rhino} A framework for enterprise Shiny applications appsilon.github.io/rhino
- Shiny Assistant gallery.shinyapps.io/assistant
- Conventional Commits conventionalcommits.org/en/v1.0.0
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop website bristolmyerssquibb.github.io/blockr.workshop
- {blockr} Building blocks for data manipulation and visualization bristolmyerssquibb.github.io/blockr
- Programming with {dplyr} dplyr.tidyverse.org/articles/programming.html
- Shiny Developer Series shinydevseries.com
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop slides (best viewed in browsers using Chrome engine): http://schloerke.com/workshop-rinpharma24-shinylive
- Workshop GitHub repository: github.com/schloerke/workshop-rinpharma24-shinylive
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop website nrennie.rbind.io/r-pharma-2024-parameterized-reports
- Nicola's blog post with answers to workshop questions nrennie.rbind.io/blog/parameterized-plots-reports-r-quarto
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop GitHub Repository github.com/thaink2/th2rpharma
- R Markdown rmarkdown.rstudio.com
- {prettydoc} Creating Pretty Documents from R Markdown prettydoc.statr.me
- Patient Risk Profiles Dataset on Kaggle kaggle.com/datasets/sujaykapadnis/patient-risk-profiles
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- Workshop slides docs.google.com/presentation/d/1nf-l8IKxjxcO3Fv_mymb3Iqmm6z4pjI7fAPwu371lVg/edit?usp=sharing
- Workshop GitHub Repository github.com/sol-eng/Workbench-HPC-Webinar.git
- {clustermq} Evaluate function calls on HPC schedulers mschubert.github.io/clustermq
- {targets} Dynamic function-oriented make-like declarative pipelines docs.ropensci.org/targets
- {crew} A distributed worker launcher framework wlandau.github.io/crew
- {crew.cluster} Launcher plugin for traditional high-performance computing clusters wlandau.github.io/crew.cluster
- Posit Workbench and AWS ParallelCluster github.com/sol-eng/aws-parallelcluster-rsw-ha
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Resources mentioned in the workshop:
- {opticskxi} OPTICS K-Xi Density-Based Clustering github.com/ThomasChln/opticskxi
- {kgraph} Knowledge Graphs R package gitlab.com/thomaschln/kgraph
- {kgraph} vignette cran.r-project.org/web/packages/kgraph/vignettes/kgraph.html
- Word embeddings in mental health (R/Medicine 2024 presentation recording) youtube.com/watch?v=sj7qYS8oRyc
- GitLab repository for R/Medicine 2024 presentation gitlab.com/thomaschln/psychclust_rmed24
- Knowledge Graphs App kgraph.parse-health.org
Workshop recorded as part of the 2024 R/Pharma Workshop Series
Abstract: CAMIS is a PHUSE working group whose goal is to find several discrepancies between statistical analysis methods using various software. The speaker intends to delve into the fundamentals of Principal Component Analysis (PCA) and its applications using R. In the pharmaceutical and Healthcare Industry, the vast amount of patient data poses a significant challenge for researchers and clinicians seeking to identify meaningful patterns and relations among the variables. PCA provides an effective approach by reducing dimensionality and uncovering underlying structures in complex datasets.
Resources mentioned in the talk:
- CAMIS psiaims.github.io/CAMIS
Presented at the 2024 R/Pharma Conference APAC Track
Resources mentioned in the talk:
- Presentation slides danielinteractive.github.io/r-and-julia
- Presentation GitHub repository github.com/danielinteractive/r-and-julia
- The Julia programming language julialang.org
- Algorithms with Julia link.springer.com/book/10.1007/978-3-031-16560-3
- Awesome Generative AI Meets Julia Programming Language github.com/svilupp/awesome-generative-ai-meets-julia-language
- Joint Models for Longitudinal and Time-to-Event Data doi.org/10.1201/b12208
- Bayesian Inference Using Hamiltonian Monte-Carlo Algorithm for Nonlinear Joint Modeling in the Context of Cancer Immunotherapy doi.org/10.1002/sim.8756
- Turing: A Language for Flexible Probabilistic Inference http://proceedings.mlr.press/v84/ge18b.html
- {JointSurvivalModels.jl} github.com/insightsengineering/JointSurvivalModels.jl
- {Turing.jl} https://turing.ml/
- A Bayesian Method for Safety Signal Detection in Ongoing Blinded Randomised Controlled Trials doi.org/10.1002/pst.2278
- Bayesian Safety Signal Detection presented to PSI Journal Club, Nov 2023 youtube.com/watch?v=oZBsuGlLobY
- {SafetySignalDetection.jl} github.com/openpharma/SafetySignalDetection.jl
- Robust Meta-Analytic-Predictive Priors in Clinical Trials with Historical Control Information doi.org/10.1111/biom.12242
- {Distributions.jl} juliastats.org/Distributions.jl/stable/mixture
- {ExpectationMaximization.jl} dmetivie.github.io/ExpectationMaximization.jl
- Julia: Noteworthy differences from R docs.julialang.org/en/v1/manual/noteworthy-differences/#Noteworthy-differences-from-R
- The JuliaConnectoR: A Functionally-Oriented Interface for Integrating Julia in R doi.org/10.18637/jss.v101.i06
- Quarto: Using Julia quarto.org/docs/computations/julia.html
- JuliaDiff: Differentiation tools in Julia juliadiff.org
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: We developed a Shiny application to deliver fast and flexible tumor-normal gene expression analysis based on TCGA and GTEx data. Compared to the widely-used public tool GEPIA, TNfinder offers more tailored functions including gene signature analysis, T-N cutoff evaluation, population estimation, tumor-specific marker detection, and enhanced visualization options. This app provides biologists with a convenient tool to perform expression analysis in oncology target identification and assessment.
Resources mentioned in the talk:
- GEPIA: Gene expression profiling interactive analysis http://gepia.cancer-pku.cn/
- {shiny} - Easy interactive web applications with R shiny.posit.co
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: In this session, we will describe how we are leveraging R to build datasets from different sources (internal and external) to create a network of doctor-related activities within a graph database system. We also use the Cypher query language to create use cases from there.
Resources mentioned in the talk:
- Memgraph memgraph.com
- Neo4j neo4j.com
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: Recently, it is a common practice to use R to develop functionality or Shiny application for statistical analysis or reporting. With the development of GenAI and integration of Copilot into RStudio/Posit Workbench, programmer can utilize such tool to improve their development efficiency. In this session, we will explore some use cases of Copilot in daily statistical activity and introduce how to use Copilot efficiently.
Resources mentioned in the talk:
- GitHub Copilot github.com/features/copilot
- Modern Applied Data Analysis (MADA) Course by Andreas Handel andreashandel.github.io/MADAcourse
- GitHub Copilot for R Shiny Development procogia.com/github-copilot-for-r-shiny-development
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: Reproducibility and efficiency are critical in data analysis workflows, particularly in complex projects with multiple interdependent tasks. The {targets} package in R offers a robust solution for orchestrating reproducible and scalable workflows. By defining and managing a directed acyclic graph (DAG) of tasks, {targets} ensures that each step in the workflow is executed in the correct order and only when necessary, saving time and computational resources. In this presentation, we will demonstrate how to build a reproducible workflow using {targets}. We will explore the core features of the package, including target definition, dependency management, and automated pipeline execution. Through practical examples, we will show how {targets} can be integrated with other R packages to handle data processing, modeling, and visualization seamlessly. Additionally, we will discuss practical tips for maintaining workflows, ensuring they remain efficient and manageable as project complexity grows. Whether you are new to {targets} or looking to enhance your workflow automation, this session will provide valuable insights and practical techniques to elevate your data analysis projects.
Resources mentoned in the talk:
- {targets} Dynamic function-oriented make-like declarative pipelines docs.ropensci.org/targets
- The {targets} R package: a dynamic Make-like function-oriented pipeline toolkit for reproducibility and high-performance computing joss.theoj.org/papers/10.21105/joss.02959
- {targets} User Manual books.ropensci.org/targets
- {targets} short course github.com/wlandau/targets-tutorial
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: In this talk, we would like to introduce openstatsware, an official working group of ASA BIOP as well as EFSPI/PSI. The working group has a primary objective to engineer R packages that implement important statistical methods, and a secondary objective to develop and disseminate best practices for engineering high-quality open-source statistical software. We will talk about what R packages we have been developing and what we have done to disseminate the best practices, as well as our long-term perspective and next steps.
Resources mentioned in the talk:
- Openstatsware openstatsware.org
- {mmrm} Mixed Models for Repeated Measures openpharma.github.io/mmrm/latest-tag
- {brms.mmrm} Bayesian MMRMs using brms openpharma.github.io/brms.mmrm
- {maicplus} Matching Adjusted Indirect Comparison hta-pharma.github.io/maicplus/main
- {SafetySignalDetection.jl} Bayesian safety signal detection openpharma.github.io/SafetySignalDetection.jl/stable
- openstatsguide openstatsware.org/guide.html
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: Stability of statistical results is essential in drug development. Many research groups develop in-house pipelines for data processing and analysis, incorporating with R packages, internal computations, and even integrate with other language like Python. However, untracked tool updates can lead to result variability or pipeline failures.
At Silence Therapeutics, we've implemented a three-tiered approach to ensure result reliability, reproducibility, and robustness:
1. Automated semantic versioning: Tracks changes in our data pipeline when internal or external developers update functions.
2. Docker containerization: Ensures consistent environments for reproducible results.
3. Nextflow integration: Enables scalable execution of our containerized pipelines on AWS cloud.
This comprehensive system provides a solid foundation for our drug development efforts by maintaining pipeline integrity and result consistency.
Resources mentioned in the talk:
- Reproducibility in Cancer Biology: Challenges for assessing replicability in preclinical cancer biology elifesciences.org/articles/67995
- Docker: Accelerated Container Application Development docker.com
- Nextflow: A DSL for parallel and scalable computational pipelines nextflow.io
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: At Appsilon, we focus on helping diverse teams build Shiny apps to solve their problems. Over time, we've observed common project patterns that hinder onboarding and create barriers to productive contributions. In this discussion, we will detail these patterns and provide strategies to mitigate them, supported by case studies of projects that have successfully overcome these challenges. These barriers include a lack of documentation, complex setup processes, insufficient dependency management, poor code organization, and inadequate testing, among others. At first, these topics may seem more closely related to the responsibilities of professional developers rather than members working within business lines. However, it becomes much easier to address these issues with access to some helpful tools. We will discuss these tools and how to implement them in your project with minimal effort. Defining such standards will ensure that future projects and teams work seamlessly and effectively.
Resources mentioned in the talk:
- Tidyverse style guide style.tidyverse.org
- {shiny} - Easy interactive web applications with R shiny.posit.co
- {testthat} Unit testing for R testthat.r-lib.org
- Sharing app state between modules (Shinyconf 2023) youtube.com/watch?v=fo4eiwGE6bw
- {renv} Project environments in R rstudio.github.io/renv/index.html
- {rhino} A framework for enterprise Shiny applications appsilon.github.io/rhino
- Awesome Shiny Extensions github.com/nanxstats/awesome-shiny-extensions
- Shiny4All Community shiny4all.com
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: The Bayesian Cluster Validity Index (BCVI) is a new concept that directly applies the Bayesian framework to CVIs. This connection is unique and has not been explored before in the literature. In this talk, we introduce BCVI, which can be used in conjunction with any existing CVIs, particularly advantageous for users who have prior knowledge of the expected number of clusters in their datasets. We will explore the BCVI concept in depth, demonstrating its integration with the BayesCVI available on CRAN and applying it to diverse real-world applications such as health science data and MRI image brain tumor detection.
Resources mentoined in the talk:
- {BayesCVI} Bayesian Cluster Validity Index cran.r-project.org/web/packages/BayesCVI/index.html
- Kaggle Brain Tumor MRI Dataset kaggle.com/datasets/masoudnickparvar/brain-tumor-mri-dataset
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: In our daily study practice, we identified the need for a concise and straightforward tool to help study teams extract significant information from the latest EDC raw data. However, study teams often find themselves overwhelmed by the vast amount of EDC data and overly complex data review tools. To address this, we developed a one-click R-Shiny App that bridges EDC data directly to actionable outputs, enabling the detection of critical signals related to data quality.
The goal of this one-click R-Shiny App is to resolve the following challenges:
1. Provide a global dashboard that accommodates all company-level studies.
2. Detect patterns between the overall population and the China subgroup in safety data, end-of-treatment, end-of-study, protocol deviations, and biomarker sample collection.
3. Extract the most critical exception listings.
4. Address the issue of variable names lacking direct access to variable labels.
Resources mentioned in the talk:
- {shiny} - Easy interactive web applications with R shiny.posit.co
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: The use of interactive web applications has become increasingly prominent in various industries due to their ability to enhance user experience and streamline processes. In clinical programming, ensuring the quality and compliance of deliverables is paramount to uphold regulatory standards and safeguard patient safety. The Shiny application is effectively used for creating interactive web application that facilitate quality compliance checks in clinical programming frameworks.
At Novo Nordisk, a user friendly Shiny application has been developed to read various file formats like SAS, R, TXT, PNG and HTML, perform various compliance checks , compare different versions of Tables, Figures, Listings to highlight the issues and generate summary reports for review.
Integrating Shiny into the quality compliance process in clinical programming presents a robust solution to enhance the accuracy and efficiency of quality assurance.
Resources mentioned in the talk:
- {shiny} - Easy interactive web applications with R shiny.posit.co
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: I am going to demonstrate how to use Shiny to effectively present clinical results using CDISC-compliant datasets, such as SDTM. The main points of the presentation are as follows:
1. Using Shiny to present key domains and combine information from multiple domains within clinical datasets.
2. Presenting specific group or individual information with Shiny, enhancing the clarity and visualization of clinical results.
3. Ensuring that the Shiny app is user-friendly for non-programming users, enabling efficient data exploration and monitoring.
Resources mentioned in the talk:
- {shiny} - Easy interactive web applications with R shiny.posit.co
- Pharmaverse pharmaverse.org
- {tidyverse} R packages for data science tidyverse.org
- {ggplot2} Create Elegant Data Visualizations using the Grammar of Graphics ggplot2.tidyverse.org
- Quarto: An open-source scientific and technical publishing system quarto.org
Presented at the 2024 R/Pharma Conference APAC Track
Yanli Chang leads an insightful discussion of Tala Fakhouri's R/Pharma 2024 keynote presentation on Responsive Regulation of AI in Drug Development!
Resources mentioned in the talk:
- Responsive Regulation of AI in Drug Development (Tala Fakhouri) R/Pharma 2024 Keynote youtube.com/watch?v=Jc9axucreyc
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: Following, the first R-based submission from Novo Nordisk an internal journey began to give back to the open-source community. Novo Nordisk has developed several internal packages to support the infrastructure behind executing clinical trials in R, and now one of the first pieces are ready to be open-sourced.
In this presentation we’ll take you down the long and winding road of going from inner-sourced packages to open-sourced packages and reveal {whirl} which is our new open-source R package for executing scripts and producing GxP compliant logs when conducting clinical trials.
{whirl} is an alternative to existing packages such as {logrx} and {logr} and is to be included as Novo Nordisk' first contribution to the pharmaverse.
The advantages of {whirl} are the support of multiple languages, and the html-based log reports, offering users a comprehensive overview of their processes.
Resources mentioned in the talk:
- {whirl} Logging of scripts suitable for clinical trials novonordisk-opensource.github.io/whirl
- {whirl} GitHub Repository github.com/novonordisk-opensource/whirl
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: In the near future, we would like to use teal to conduct interactive analysis and to realize efficient communication with clinical development menbers. We will share an overview of the project, consisting of biostatisticians and statistical programmers, and future prospects.
Resources mentioned in the talk:
- Pharmaverse pharmaverse.org
- {teal} Interactive Exploratory Data Analysis with Shiny Web-Applications insightsengineering.github.io/teal/latest-tag
- TLG Catalog insightsengineering.github.io/tlg-catalog
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: In the pharmaceutical industry, TFLs can be generated through programming to support the final clinical study report. However, by referring to the TFL results, the medical writer needs to manually transcribe or copy/paste the outputs into the CSR. This entire process can consume several months, depending on the complexity of the study and regulatory requirements. To overcome this difficulty, we suggest using {quarto}, which can derive descriptions, narratives, inline tables, figures, etc., for the CSR. In this session, we will discuss the rationale and feasibility of using such a tool, and example solutions will be provided.
Resources mentioned in the talk:
- Quarto: An open-source scientific and technical publishing system quarto.org
- {teal.reporter} Reporting tools for Shiny modules insightsengineering.github.io/teal.reporter
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: For one who works with programming, working on word documents such as creating tables, adjusting spaces, fonts seems to be tiring. In the pharma domain, statisticians are involved in one such task of building mock shells for tables and replicating the same table structure (using programming software) to report statistical results. Statisticians are also required to provide statistical narratives for key results, which involves copying numerical values from summary tables and manually crafting the narrative - another time-consuming job. Many pharmaceutical companies have developed their own R libraries, some of which are available in the public domain. However, the output formats (i.e., the class of output objects) from these libraries are often not flexible and difficult to adapt to specific end-user requirements.
This abstract proposes a solution to these challenges using R by:
1. Creating Custom R Functions (Macros) for table layout: We propose building R functions that can generate table mock shells, which can later be reused to report statistical outputs. For example, a function like `fun_demo_tab` could be used to create a mock table for demographic data to be included in a TLF (Tables, Listings, and Figures) mock shell. The same function could then be reused to present the statistical summary of demographic data in the final report.
2. Automating Statistical Narration: We suggest developing an R macro along with RMarkdown that can automatically extract numerical values from summary tables and integrate them into a predefined narrative framework. This would significantly reduce the time statisticians spend on this task, cutting it down from hours to just a few seconds.
Resources mentioned in the talk:
- {tidyverse} R packages for data science tidyverse.org
- {officer} Manipulation of Microsoft Word and PowerPoint Documents davidgohel.github.io/officer
- {flextable} Functions or tabular reporting davidgohel.github.io/flextable
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: Very few industry-wide standards exist for clinical reporting, but open-source technologies are bridging this gap. This presentation introduces our R package and Shiny application, Carver (Clinical Analysis Report and Visualization Ensemble in R), which generates clinical submission-ready tables and graphs. An earlier version focusing on Adverse Events related reports was developed by our team in collaboration with Phuse, ASA and FDA. It is now expanded as an open-source Pfizer project, under spotlight of CDISC Open Source Alliance (COSA). This project references FDA Integrated TLF Guide, CDISC Guidelines and CDISC Standard Data.
{carver} uses standardized functions to build multiple clinical reports – under domains like Adverse Events, Lab Findings and Demography in Therapeutic Areas like Vaccine and Oncology. In addition to templates to create static tables and figures, the modularized Shiny application can also be used to generate interactive plots – with a feature to drill down to patient-level analysis. {carver} uses packages from the tidyverse suite, plotly, ggsurvfit, shiny, shinydashboard, shinyBS etc. For tables, we built a wrapper around Flextable package to dynamically fit a submission-ready format. The R functions are unit-tested, use tidy principles and CI/CD workflows were implemented.
We aim for {carver} to be used for regulatory submissions and for clinical review. Another potential outcome could be to embed study data within a Shiny Dashboard and include it in clinical submission-package. We are seeking collaborators to expand its reporting capabilities across the pharma industry.
Resources mentioned in the talk:
- {carver} Clinical Analysis Reporting and Visualization Ensemble in R github.com/pfizer-opensource/carver
- R Markdown rmarkdown.rstudio.com
- {tidyverse} R packages for data science tidyverse.org
- {flextable} Functions or tabular reporting davidgohel.github.io/flextable
- {ggplot2} Create Elegant Data Visualizations using the Grammar of Graphics ggplot2.tidyverse.org
- {covr} Test coverage for packages covr.r-lib.org
- {golem} A framework for robust Shiny applications thinkr-open.github.io/golem
- {bs4Dash} A Bootstap 4 version of shinydashboard bs4dash.rinterface.com
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: We are planning to transition our analytical tools from SAS to R in the near future. I will share information about the educational initiatives we are working on for the introduction of R.
Resources mentioned in the talk:
- Accel2R accel2r.com
Presented at the 2024 R/Pharma Conference APAC Track
Abstract: This talk will share Novartis' transformative journey from SAS to R, highlighting our challenges, experiences, and successes. We'll discuss strategies to leverage open-source resources effectively and share insights on contributing to the open-source community.
Resources mentioned in the talk:
- {admiral} ADam in R asset library pharmaverse.github.io/admiral
- {teal} Interactive Exploratory Data Analysis with Shiny Web-Applications insightsengineering.github.io/teal/latest-tag
- CAMIS psiaims.github.io/CAMIS
Presented at the 2024 R/Pharma Conference APAC Track
Daniel Sabanes Bove leads an insightful discussion of Joe Cheng's R/Pharma 2024 keynote presentation on Summer is Coming: AI for R, Shiny, and Pharma with Joe Cheng himself!
Resources mentioned in the talk:
- Summer is Coming: AI for R, Shiny, and Pharma (Joe Cheng) R/Pharma 2024 Keynote youtube.com/watch?v=AfMa1CVUdXU
Presented at the 2024 R/Pharma Conference APAC Track
Opening Remarks for the 2024 R/Pharma Conference APAC track by Daniel Sebanes Bove!


