sensitivityPStrat is an R package used to perform sensitivity analyses for treatment effects within principal strata. The package was written by Charles Dupont and Bryan Shepherd and is available on CRAN. The package is freely available and can be downloaded with documentation here.