Просмотр исходного кода

Update docs (roxygen md), better title and description

tags/v0.1.3
Garrick Aden-Buie 8 лет назад
Родитель
Сommit
27dcdaa9d6
11 измененных файлов: 64 добавлений и 28 удалений
  1. +7
    -3
      DESCRIPTION
  2. +4
    -0
      R/regexplain-package.R
  3. +2
    -2
      R/run_regex.R
  4. +0
    -4
      R/utils.R
  5. +1
    -1
      Readme.Rmd
  6. +2
    -2
      Readme.md
  7. +2
    -2
      man/regex_gadget.Rd
  8. +32
    -0
      man/regexplain-package.Rd
  9. +3
    -3
      man/textAreaInputAlt.Rd
  10. +4
    -4
      man/textInputCode.Rd
  11. +7
    -7
      man/view_regex.Rd

+ 7
- 3
DESCRIPTION Просмотреть файл

@@ -1,13 +1,16 @@
Package: regexplain
Title: Rstudio addin to help you with your regexes (in progress)
Version: 0.1.1
Title: Rstudio Addin to Explain, Test and Build Regular Expressions
Version: 0.1.1.9000
Date: 2018-03-07
Authors@R: c(
person("Garrick", "Aden-Buie", email = "g.adenbuie@gmail.com", role = c("aut", "cre")),
person("Winston", "Chang", role = c("ctb"), comment = "Author of textInput and textAreaInput fragments from shiny"),
person(family = "RStudio", role = "cph", comment = "Copyright holder of included shiny fragments")
)
Description: Test and view regexes.
Description: A set of RStudio Addins to help interactively test and build
regular expressions. Provides a Shiny gadget interface for interactively
constructing the regexp and viewing the results from common string-searching
functions. Also provides a helpful reference sheet as an RStudio addin.
Depends: R (>= 3.4.3)
License: GPL-3
Encoding: UTF-8
@@ -26,6 +29,7 @@ Imports:
shiny,
miniUI
RoxygenNote: 6.0.1
Roxygen: list(markdown = TRUE)
URL: https://github.com/gadenbuie/regexplain
BugReports: https://github.com/gadenbuie/regexplain/issues
Suggests:

+ 4
- 0
R/regexplain-package.R Просмотреть файл

@@ -0,0 +1,4 @@
#' @importFrom dplyr "%>%" mutate filter group_by summarize select
#' @importFrom utils getFromNamespace
#' @keywords internal
"_PACKAGE"

+ 2
- 2
R/run_regex.R Просмотреть файл

@@ -110,9 +110,9 @@ wrap_regex <- function(pattern, escape = TRUE, exact = TRUE) {
#' @param knitr Print into knitr doc? If `TRUE`, marks text as `asis_output` and
#' sets `render = FALSE` and `escape = TRUE`.
#' @param exact Should regex be displayed as entered by the user into R console
#' or source (default)? When `TRUE`, regex is displayed with the double `\\`
#' or source (default)? When `TRUE`, regex is displayed with the double `\\\\`
#' required for escaping backslashes in R. When `FALSE`, regex is displayed
#' as interpreted by the regex engine (i.e. double `\\` as a single `\`).
#' as interpreted by the regex engine (i.e. double `\\\\` as a single `\\`).
#' @param ... Passed to [run_regex]
#' @export
view_regex <- function(

+ 0
- 4
R/utils.R Просмотреть файл

@@ -1,7 +1,3 @@
#' @importFrom dplyr "%>%" mutate filter group_by summarize select
#' @importFrom utils getFromNamespace
NULL

escape_html <- function(x) {
x = gsub("&", "&amp;", x)
x = gsub("<", "&lt;", x)

+ 1
- 1
Readme.Rmd Просмотреть файл

@@ -2,7 +2,7 @@
title: "regexplain"
output: github_document
---
[![packageversion](https://img.shields.io/badge/Package%20version-0.1.1-orange.svg?style=flat-square)](commits/master)
[![packageversion](https://img.shields.io/badge/v-0.1.1.9000-orange.svg)](commits/master)
![](https://img.shields.io/badge/lifecycle-needs_testers-yellow.svg)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/regexplain)](https://cran.r-project.org/package=regexplain)

+ 2
- 2
Readme.md Просмотреть файл

@@ -1,13 +1,13 @@
regexplain
================

[![packageversion](https://img.shields.io/badge/Package%20version-0.1.1-orange.svg?style=flat-square)](commits/master)
[![packageversion](https://img.shields.io/badge/v-0.1.1.9000-orange.svg)](commits/master)
![](https://img.shields.io/badge/lifecycle-needs_testers-yellow.svg)
[![Project Status: Active – The project has reached a stable, usable
state and is being actively
developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/regexplain)](https://cran.r-project.org/package=regexplain)
[![Last-changedate](https://img.shields.io/badge/last%20change-2018--03--12-yellowgreen.svg)](/commits/master)
[![Last-changedate](https://img.shields.io/badge/last%20change-2018--03--13-yellowgreen.svg)](/commits/master)

<!-- Links -->


+ 2
- 2
man/regex_gadget.Rd Просмотреть файл

@@ -10,8 +10,8 @@ regex_gadget(text = NULL, start_page = if (is.null(text)) "Text" else
\arguments{
\item{text}{Text to explore in gadget (editable using interface)}

\item{start_page}{Open gadget to this tab, one of `"Text"`, `"Regex"`,
`"Output"`, or `"Help"`}
\item{start_page}{Open gadget to this tab, one of \code{"Text"}, \code{"Regex"},
\code{"Output"}, or \code{"Help"}}
}
\description{
regexplain gadget

+ 32
- 0
man/regexplain-package.Rd Просмотреть файл

@@ -0,0 +1,32 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/regexplain-package.R
\docType{package}
\name{regexplain-package}
\alias{regexplain}
\alias{regexplain-package}
\title{regexplain: Rstudio Addin to Explain, Test and Build Regular Expressions}
\description{
A set of RStudio Addins to help interactively test and build
regular expressions. Provides a Shiny gadget interface for interactively
constructing the regexp and viewing the results from common string-searching
functions. Also provides a helpful reference sheet as an RStudio addin.
}
\seealso{
Useful links:
\itemize{
\item \url{https://github.com/gadenbuie/regexplain}
\item Report bugs at \url{https://github.com/gadenbuie/regexplain/issues}
}

}
\author{
\strong{Maintainer}: Garrick Aden-Buie \email{g.adenbuie@gmail.com}

Other contributors:
\itemize{
\item Winston Chang (Author of textInput and textAreaInput fragments from shiny) [contributor]
\item RStudio (Copyright holder of included shiny fragments) [copyright holder]
}

}
\keyword{internal}

+ 3
- 3
man/textAreaInputAlt.Rd Просмотреть файл

@@ -41,7 +41,7 @@ resizing textareas.}
\item{is_code}{Should the text input be considered verbatim code input?}
}
\description{
Standard [shiny::textAreaInput()] with additional `is_code` parameter, added
code font style for the input text and with `autocomplete`, `autocorrect`,
`autocapitalize` and `spellcheck` set to `off` or `false`.
Standard \code{\link[shiny:textAreaInput]{shiny::textAreaInput()}} with additional \code{is_code} parameter, added
code font style for the input text and with \code{autocomplete}, \code{autocorrect},
\code{autocapitalize} and \code{spellcheck} set to \code{off} or \code{false}.
}

+ 4
- 4
man/textInputCode.Rd Просмотреть файл

@@ -14,14 +14,14 @@ textInputCode(inputId, label, value = "", width = NULL,

\item{value}{Initial value.}

\item{width}{Width of `shiny-input-container` div.}
\item{width}{Width of \code{shiny-input-container} div.}

\item{placeholder}{A character string giving the user a hint as to what can
be entered into the control. Internet Explorer 8 and 9 do not support this
option.}
}
\description{
Standard [shiny::textInput()] with additional `width` parameter, added code
font style for the input text and with `autocomplete`, `autocorrect`,
`autocapitalize` and `spellcheck` set to `off` or `false`.
Standard \code{\link[shiny:textInput]{shiny::textInput()}} with additional \code{width} parameter, added code
font style for the input text and with \code{autocomplete}, \code{autocorrect},
\code{autocapitalize} and \code{spellcheck} set to \code{off} or \code{false}.
}

+ 7
- 7
man/view_regex.Rd Просмотреть файл

@@ -12,19 +12,19 @@ view_regex(text, pattern, ..., render = TRUE, escape = render,

\item{pattern}{Regex pattern to look for}

\item{...}{Passed to [run_regex]}
\item{...}{Passed to \link{run_regex}}

\item{render}{Render results to an HTML doc and open in RStudio viewer?}

\item{escape}{Escape HTML-related characters in `text`?}
\item{escape}{Escape HTML-related characters in \code{text}?}

\item{knitr}{Print into knitr doc? If `TRUE`, marks text as `asis_output` and
sets `render = FALSE` and `escape = TRUE`.}
\item{knitr}{Print into knitr doc? If \code{TRUE}, marks text as \code{asis_output} and
sets \code{render = FALSE} and \code{escape = TRUE}.}

\item{exact}{Should regex be displayed as entered by the user into R console
or source (default)? When `TRUE`, regex is displayed with the double `\\`
required for escaping backslashes in R. When `FALSE`, regex is displayed
as interpreted by the regex engine (i.e. double `\\` as a single `\`).}
or source (default)? When \code{TRUE}, regex is displayed with the double \code{\\\\}
required for escaping backslashes in R. When \code{FALSE}, regex is displayed
as interpreted by the regex engine (i.e. double \code{\\\\} as a single \code{\\}).}
}
\description{
View grouped regex results

Загрузка…
Отмена
Сохранить