R/interact_rc.R

Defines functions interact_rc

Documented in interact_rc

#' Run Interactive Rogers-Castro App
#' @description Run an interactive Rogers-Castro app. Use interactive sliders to see how parameters affect the Rogers-Castro age schedules.
#' @import shiny
#' @return No return value, called for interactive widget
#' @export
#'
#' @examples
#' \dontrun{
#' interact_rc()
#' }
interact_rc <- function() {
  appDir <- system.file("shiny-app", "RC_app", package = "rcbayes")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `rcbayes`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}

Try the rcbayes package in your browser

Any scripts or data that you put into this service are public.

rcbayes documentation built on Aug. 28, 2025, 9:08 a.m.