Garrick Aden-Buie
1b1b8307ce
factor out need for tidyr
6 years ago
Garrick Aden-Buie
9d24c6395b
CSS and dependency improvement
- Return HTML directly, drop rmarkdown
- Improve classes and specificity of rules for result styling
- Improve font size of full page regex results
6 years ago
Garrick Aden-Buie
7896ab9145
fix tidyr 1.0.0
6 years ago
Garrick Aden-Buie
e6c2446c69
A few more test and some code fiddling
7 years ago
Garrick Aden-Buie
9782606b1e
Move stringr to Suggests
Replaced a few calls to stringr with stringi (which has to stay for unicode encoding function). Not likely that people won't have stringr, but makes the dependencies a little better.
7 years ago
Garrick Aden-Buie
5b04489eb8
Rename internal function run_regex() -> regex()
7 years ago
Garrick Aden-Buie
a9e3ad1192
Reorganize names of R/*.R
7 years ago
Garrick Aden-Buie
99b4cb6350
Edits and updates to satisfy devtools::check()
7 years ago
Garrick Aden-Buie
8e65867222
Better handling of results groups
Track # of result groups in regex result data frame as idx$pass. Refactored span collating.
7 years ago
Garrick Aden-Buie
4b8428c0bd
Enable global searching
7 years ago
Garrick Aden-Buie
e196c5ba60
Regex matches now returned as a tibble
Global matching implemented inside run_regex(), nothing above initial regex matching works now.
7 years ago
Garrick Aden-Buie
c1ace12496
run_regex detects globally (but no group matching)
7 years ago
Garrick Aden-Buie
7b1714c789
dplyr::desc() instead of desc()
7 years ago
Garrick Aden-Buie
da58cb3a83
Use htmltools for groups stylesheet dependency in view_regex()
7 years ago
Garrick Aden-Buie
8e9f185f75
Embed view_regex in html documents easily
- Removed knitr parameter
- Add result_only (not in knitr)
- Soft deprecate kntir parameter
- Separate group.css from other css styles
7 years ago
Garrick Aden-Buie
a91ce1d983
Fix #9 wrap_result handles groups that start end at same index
Fixes issues with adding <span> and </span> around zero-length groups and more generally groups that start and end at the same index.
Ensures that g00 wraps all others, then at index with close/opens, closes open groups first before opening new groups.
8 years ago
Garrick Aden-Buie
004fcb437b
Update documentation
8 years ago
Garrick Aden-Buie
5334665150
Fix #7 remove autolink bare uris from view_regex()
8 years ago
Garrick Aden-Buie
cf640fc45c
Tweak styles and headers in view_regex()
8 years ago
Garrick Aden-Buie
c816502ca2
Fix #3 wrap_regex differentiates capture/non-capture groups
8 years ago
Garrick Aden-Buie
bf6a7955e1
Move css files to inst/styles
8 years ago
Garrick Aden-Buie
b6055e37ef
Add use of skeleton.css and fix sourcing of css files in view_regex()
8 years ago
Garrick Aden-Buie
d2d617cb30
Fix #2 : unmatched groups have start index of 0
8 years ago
Garrick Aden-Buie
27dcdaa9d6
Update docs (roxygen md), better title and description
8 years ago
Garrick Aden-Buie
f302d40948
Fix #4 by removing dependency on bootstrap theme
8 years ago
Garrick Aden-Buie
2780a0c73b
Clean up a bit for devtools::check()
8 years ago
Garrick Aden-Buie
c06337a8b4
Add padding to results group when many groups
8 years ago
Garrick Aden-Buie
88942fa2da
Add docs for run_regex and regex_gadget
8 years ago
Garrick Aden-Buie
2187c6386a
Update regex_gadget and add Rstudio add-in
8 years ago
Garrick Aden-Buie
0114e5e421
Add escape_blackslash()
8 years ago
Garrick Aden-Buie
8a03f191d4
notes to self
8 years ago
Garrick Aden-Buie
65faa5f601
Fix nested groups calculation and add example to Readme
8 years ago
Garrick Aden-Buie
48c42da456
Rename to regexplain
- Colorize regex in view_regex
- Use exact=TRUE param to show all backslashes in wrap_regex
- Rename wrap_span -> wrap_result
8 years ago
Garrick Aden-Buie
3b9646c9a2
Initial commit
8 years ago