🔍 An RStudio addin slash regex utility belt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.3KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/regex_gadget.R
  3. \name{regexplain_gadget}
  4. \alias{regexplain_gadget}
  5. \alias{regexplain_web}
  6. \title{RegExplain gadget}
  7. \usage{
  8. regexplain_gadget(text = NULL, pattern = NULL, start_page = if
  9. (is.null(text)) "Text" else "RegEx")
  10. regexplain_web(text = NULL, pattern = NULL, start_page = "Text", ...)
  11. }
  12. \arguments{
  13. \item{text}{Text to explore in gadget (editable using interface)}
  14. \item{pattern}{Regular Expression to edit or visualize using RegExplain}
  15. \item{start_page}{Open gadget to this tab, one of \code{"Text"}, \code{"RegEx"},
  16. \code{"Output"}, or \code{"Help"}}
  17. \item{...}{Arguments passed on to \code{shiny::shinyApp}
  18. \describe{
  19. \item{ui}{The UI definition of the app (for example, a call to
  20. \code{fluidPage()} with nested controls)}
  21. \item{server}{A server function}
  22. \item{onStart}{A function that will be called before the app is actually run.
  23. This is only needed for \code{shinyAppObj}, since in the \code{shinyAppDir}
  24. case, a \code{global.R} file can be used for this purpose.}
  25. \item{options}{Named options that should be passed to the \code{runApp} call
  26. (these can be any of the following: "port", "launch.browser", "host", "quiet",
  27. "display.mode" and "test.mode"). You can also specify \code{width} and
  28. \code{height} parameters which provide a hint to the embedding environment
  29. about the ideal height/width for the app.}
  30. \item{uiPattern}{A regular expression that will be applied to each \code{GET}
  31. request to determine whether the \code{ui} should be used to handle the
  32. request. Note that the entire request path must match the regular
  33. expression in order for the match to be considered successful.}
  34. \item{enableBookmarking}{Can be one of \code{"url"}, \code{"server"}, or
  35. \code{"disable"}. This is equivalent to calling the
  36. \code{\link{enableBookmarking}()} function just before calling
  37. \code{shinyApp()}. With the default value (\code{NULL}), the app will
  38. respect the setting from any previous calls to \code{enableBookmarking()}.
  39. See \code{\link{enableBookmarking}} for more information.}
  40. }}
  41. }
  42. \description{
  43. The function behind the RegExplain Selection and RegExplain File
  44. addins. Opens the RegExplain gadget interface in an RStudio viewer
  45. pane.
  46. }
  47. \section{Functions}{
  48. \itemize{
  49. \item \code{regexplain_web}: Launches the RegExplain gadget in a browser or an
  50. RStduio viewer pane.
  51. }}