R/BP.R

Defines functions BP

Documented in BP

#' BP runs a shiny application to fit bone section
#' @title Run a shiny application to fit bone section
#' @author Marc Girondot \email{marc.girondot@@gmail.com}
#' @return Nothing
#' @description Run a shiny application to fit bone section
#' @examples
#' \dontrun{
#' # Not run:
#' library(BoneProfileR)
#' BP()
#' }
#' @export


BP <- function() {
  
  if (!requireNamespace("shiny", quietly = TRUE)) {
    stop("shiny package is absent; Please install it first")
  }
  
  if(interactive()){
    getFromNamespace("runApp", ns="shiny")(appDir = system.file("shiny", package="BoneProfileR"), 
                                         launch.browser =TRUE)
  }
  
}

Try the BoneProfileR package in your browser

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

BoneProfileR documentation built on Sept. 7, 2022, 1:06 a.m.