File: shiny.R

package info (click to toggle)
r-cran-formatr 1.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 376 kB
  • sloc: javascript: 19; sh: 10; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#' 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'))
}