Skip to content

This tutorial demonstrates how to deploy a Shiny app on Posit Connect servers with pins to write and read data on Posit Connect.

Notifications You must be signed in to change notification settings

ccb-hms/Git-Backed-Content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

This tutorial demonstrates how to deploy a Shiny app on Posit Connect servers with pins to write and read data on Posit Connect.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages