R/polaroid.R

Defines functions polaroid

Documented in polaroid

#' @title polaroid
#'
#' @description run polaroid shiny application in appDir
#' @seealso https://github.com/jhk0530/polaroid
#'
#' @examples if(interactive()){ polaroid() }
#'
#' @import shiny
#' @return None
#'
#' @export
#'


polaroid <- function() {

  appDir <- system.file("polaroid", package = "polaroid")
  if (appDir == "") {
    stop(
      "Could not find Directory, Try re-install",
      call. = FALSE
    )
  }

  runApp(
    appDir,
    launch.browser = TRUE,
    display.mode = "normal"
  )
}

Try the polaroid package in your browser

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

polaroid documentation built on Nov. 18, 2023, 5:12 p.m.