Skip to content

Commit

Permalink
adjusted documentation to have more explicit and intentional use f la…
Browse files Browse the repository at this point in the history
…nguage
  • Loading branch information
trinker committed Dec 28, 2014
1 parent d0da033 commit e9c253f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Description: An R framework for constructing human readable regular
The tools allow the user to (1) write in smaller, modular, named, regular
expression chunks, (2) write top to bottom, rather than a single string (3)
comment individual chunks, (4) indent expressions to represent regular
expression groups, (5) Add vertical line spaces and R comments (i.e., #),
expression groups, (5) add vertical line spaces and R comments (i.e., #),
and (6) test the validity of the concatenated expression and the modular
chunks.
regular expression chunks.
License: GPL-2
URL: http://trinker.github.com/regexr/
BugReports: http://github.com/trinker/regexr/issues
Expand Down
15 changes: 9 additions & 6 deletions R/regexr-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
#' \pkg{regexr} is an R framework for constructing human readable regular
#' expressions. It aims to provide tools that enable the user to write regular
#' expressions in a way that is similar to the ways R code is written.
#' The tools allow the user to (1) write in smaller, modular, named, regular
#' expression chunks, (2) write top to bottom, rather than a single string (3)
#' comment individual chunks, (4) indent expressions to represent regular
#' expression groups, (5) test the validity of the concatenated expression
#' and the modular chunks, and (6) test the validity of the concatenated
#' expression and the modular chunks.. \cr \cr
#' The tools allow the user to:
#' \enumerate{
#' \item Write in smaller, modular, named, \emph{regular expression chunks}
#' \item Write top to bottom, rather than a single string
#' \item Comment individual \emph{regular expression chunks}
#' \item Indent expressions to represent regular expression groups
#' \item Add vertical line spaces and R comments (i.e., \code{#})
#' \item Test the validity of the \emph{concatenated expression} and the modular regular expression chunks
#' }
#' This framework harnesses the power and flexibility of regular expressions
#' but provides a structural frame that is more consistent with both code
#' writing and natural language conventions.
Expand Down
14 changes: 8 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
3. Comment individual chunks
4. Indent expressions to represent regular expression groups
5. Add vertical line spaces and R comments (i.e., #)
6. Test the validity of the *concatenated expression* and the modular chunks
6. Test the validity of the *concatenated expression* and the modular *regular expression chunks*

This framework harnesses the power and flexibility of regular expressions but provides a structural frame that is more consistent with both code writing and natural language conventions. The user decides how to break, indent, name, and comment the regular expressions in a way that is human readable, meaningful, and modular.

Expand All @@ -39,6 +39,13 @@ devtools::install_github("trinker/regexr")
- [Web Page](http://trinker.github.com/regexr/)
- [Package PDF Help Manual](https://dl.dropboxusercontent.com/u/61803503/regexr.pdf)

## Contact

You are welcome to:
* submit suggestions and bug-reports at: <https://github.com/trinker/regexr/issues>
* send a pull request on: <https://github.com/trinker/regexr/>
* compose a friendly e-mail to: <tyler.rinker@gmail.com>

## Functions

```{r, echo=FALSE, results='asis', warning=FALSE}
Expand Down Expand Up @@ -155,9 +162,4 @@ out <- construct(
)
```

## Contact

You are welcome to:
* submit suggestions and bug-reports at: <https://github.com/trinker/regexr/issues>
* send a pull request on: <https://github.com/trinker/regexr/>
* compose a friendly e-mail to: <tyler.rinker@gmail.com>
15 changes: 9 additions & 6 deletions man/regexr.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
\pkg{regexr} is an R framework for constructing human readable regular
expressions. It aims to provide tools that enable the user to write regular
expressions in a way that is similar to the ways R code is written.
The tools allow the user to (1) write in smaller, modular, named, regular
expression chunks, (2) write top to bottom, rather than a single string (3)
comment individual chunks, (4) indent expressions to represent regular
expression groups, (5) test the validity of the concatenated expression
and the modular chunks, and (6) test the validity of the concatenated
expression and the modular chunks.. \cr \cr
The tools allow the user to:
\enumerate{
\item Write in smaller, modular, named, \emph{regular expression chunks}
\item Write top to bottom, rather than a single string
\item Comment individual \emph{regular expression chunks}
\item Indent expressions to represent regular expression groups
\item Add vertical line spaces and R comments (i.e., \code{#})
\item Test the validity of the \emph{concatenated expression} and the modular regular expression chunks
}
This framework harnesses the power and flexibility of regular expressions
but provides a structural frame that is more consistent with both code
writing and natural language conventions.
Expand Down

0 comments on commit e9c253f

Please sign in to comment.