Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 2.69 KB

README.md

File metadata and controls

52 lines (30 loc) · 2.69 KB

Deploying Shiny Applications on Posit Connect Using Pins

Overview

Tutorial Link: https://ccb.connect.hms.harvard.edu/Git-Backed-Content-Tutorial/

This tutorial guides you through deploying a Shiny app on Posit Connect using the powerful pins package to manage your data efficiently. It demonstrates single-cell RNA sequencing data analysis with the scRNAseq package, encompassing data fetching, quality control, normalization, and dimensionality reduction with results showcased via a dynamic Shiny interface.

This tutorial provides step-by-step instructions for:

  1. Setting up your local environment and preparing data for deployment.
  2. Using the pins package to upload datasets to Posit Connect securely.
  3. Developing a Shiny app that dynamically reads data from Posit Connect.
  4. Configuring and deploying the Shiny app on Posit Connect.

Repository Structure

The tutorial's complete codebase is housed in this GitHub repository. Below are the main components and their respective branches:

  • master branch: analytics code responsible for generating and saving data using pins.

  • Quarto branch: code to generate the tutorial Quarto document, also deployed on the Posit Connect server alongside the Shiny app.

  • Shiny branch: Codebase for the Shiny app visualizing single-cell RNA-seq data.

Outputs

From this repository's projects, several outputs are realized:

  1. Quarto Document: Detailed guide and documentation displayed on Posit Connect.

  2. Shiny App: Interactive platform for visualizing single-cell RNA-seq data in reduced dimensions.

Quick Start

Setting Up Your Environment

  1. Prerequisites:
    • Ensure you have R and RStudio installed.
  • Install required packages: shiny, pins, rsconnect, scRNAseq, scran, scuttle, scater.
  1. Clone the Repository:
git clone https://github.com/ccb-hms/Git-Backed-Content.git 
cd your-repository

Additional Resources

For extended information and guidance, explore the Posit Connect documentation under the Git-Backed Content section.