Garrick Aden-Buie
ced4bb7c42
minor speed up max_match_index()
hace 6 aƱos
Garrick Aden-Buie
3159fd49ce
factor out need for tidyr
hace 6 aƱos
Garrick Aden-Buie
eb09d780bd
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
hace 6 aƱos
Garrick Aden-Buie
a5d9a7156c
Warn about regex_gadget() deprecation
hace 6 aƱos
Garrick Aden-Buie
2b1c86f2e5
suggest jsonlite
hace 6 aƱos
Garrick Aden-Buie
f247ae89ad
fix tidyr 1.0.0
hace 6 aƱos
Garrick Aden-Buie
9b9588db41
A few more test and some code fiddling
hace 7 aƱos
Garrick Aden-Buie
b74abf1e82
Update documentation
hace 7 aƱos
Garrick Aden-Buie
d7a867d234
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.
hace 7 aƱos
Garrick Aden-Buie
1f4194b9be
Adjust style of RegEx tab
- Fixed min-height for inputs and controls
- Inputs, controls and outputs won't overlap
- Build out HTML instead of using fillCol()
- Modified textInputCode() to allow additional items into input-group for library button
- Use input-group instead of form-group for textInputCode()
hace 7 aƱos
Garrick Aden-Buie
133e585f76
Rename internal function run_regex() -> regex()
hace 7 aƱos
Garrick Aden-Buie
8160808363
Reorganize names of R/*.R
hace 7 aƱos
Garrick Aden-Buie
a38fd94175
Update internal data after #16
hace 7 aƱos
Garrick Aden-Buie
33625b6b15
Edits and updates to satisfy devtools::check()
hace 7 aƱos
Garrick Aden-Buie
d975ca60c6
Document options in package help text
hace 7 aƱos
Garrick Aden-Buie
326d04d65e
Break out gadget UI/server components and rename regexplain_gadget()
Also adds regexplain_web()
hace 7 aƱos
Garrick Aden-Buie
69c522eb63
Fix #14 Add pattern parameter to regex_gadget()
hace 7 aƱos
Garrick Aden-Buie
5d10179a3a
Add "global" option to gadget
hace 7 aƱos
Garrick Aden-Buie
975e3ae4fa
Better handling of results groups
Track # of result groups in regex result data frame as idx$pass. Refactored span collating.
hace 7 aƱos
Garrick Aden-Buie
67725f59bb
Enable global searching
hace 7 aƱos
Garrick Aden-Buie
75348f5b06
Regex matches now returned as a tibble
Global matching implemented inside run_regex(), nothing above initial regex matching works now.
hace 7 aƱos
Garrick Aden-Buie
a36fbbbfb7
run_regex detects globally (but no group matching)
hace 7 aƱos
Garrick Aden-Buie
038ecb4f89
dplyr::desc() instead of desc()
hace 7 aƱos
Garrick Aden-Buie
da58cb3a83
Use htmltools for groups stylesheet dependency in view_regex()
hace 7 aƱos
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
hace 7 aƱos
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.
hace 8 aƱos
Garrick Aden-Buie
e91c7a6db9
Fix #8 use shiny::isTruthy on replacement in addin
hace 8 aƱos
Garrick Aden-Buie
28a16e1a89
Fix update message command
hace 8 aƱos
Garrick Aden-Buie
8c674d38a7
Clear placeholder when setting regex pattern from library
and restore when input$pattern is empty
hace 8 aƱos
Garrick Aden-Buie
3083a5d3f2
Updates to selection processing in addin
- Use global option regexplain.addin.max_lines (default 100)
- Give hint on warning about option
- Always use unique lines in selection
hace 8 aƱos
Garrick Aden-Buie
004fcb437b
Update documentation
hace 8 aƱos
Garrick Aden-Buie
0d4673d72f
Fix non-ascii chars in regex_gadget.R
hace 8 aƱos
Garrick Aden-Buie
cb8807526c
Allow source field in patterns to render HTML
hace 8 aƱos
Garrick Aden-Buie
0cc66bea8e
Missed template -> library rename
hace 8 aƱos
Garrick Aden-Buie
597f03f569
Rename templates -> library
hace 8 aƱos
Garrick Aden-Buie
acfd2dc521
Add patterns from qdapRegex and document all patterns
hace 8 aƱos
Garrick Aden-Buie
84ca893558
Drop empty templates, show source, allow HTML in description
hace 8 aƱos
Garrick Aden-Buie
ce86076727
Fix missing backlash in Help: "\\w"
hace 8 aƱos
Garrick Aden-Buie
bb7e815eb3
Enable gadget debug via options
regexplain.debug.gadget.(text|pattern|replacement)
hace 8 aƱos
Garrick Aden-Buie
274d9cea12
Enable perl by default, output non-default options in comments
hace 8 aƱos
Garrick Aden-Buie
a1833c2bc3
Resources: adds regexper.com and rick.measham.id.au/paste/explain
hace 8 aƱos
Garrick Aden-Buie
3a2aa59718
Order template patterns by name
hace 8 aƱos
Garrick Aden-Buie
49d6fec910
Add qdapRegex package to resources
hace 8 aƱos
Garrick Aden-Buie
8860412d0d
Gadget is now RegExplain and clean up things
hace 8 aƱos
Garrick Aden-Buie
bb7c80ae72
Add Regex Hub and RegExLib to online resources
hace 8 aƱos
Garrick Aden-Buie
4d94c20b4d
Add Templates button to load common regex patterns
hace 8 aƱos
Garrick Aden-Buie
64a47e0b52
RegEx tab was renamed
hace 8 aƱos
Garrick Aden-Buie
8bc4bec7ee
Adjust selection of Harvard Sentences for color example
hace 8 aƱos
Garrick Aden-Buie
00f3982700
Add Intro and Resources to Help tab
hace 8 aƱos
Garrick Aden-Buie
09188b347d
Fix unicode unescaping for e.g. \\U0001F575
hace 8 aƱos