R/shiny.R

Defines functions tidy_app

Documented in tidy_app

#' A Shiny app to format R code
#'
#' Run a Shiny app that formats R code via \code{\link{tidy_source}()}. This app
#' uses input widgets, such as checkboxes, to pass arguments to
#' \code{tidy_source()}.
#' @export
#' @examples if (interactive()) formatR::tidy_app()
tidy_app = function() {
  shiny::runApp(system.file('shiny', package = 'formatR'))
}

Try the formatR package in your browser

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

formatR documentation built on Jan. 18, 2023, 1:09 a.m.