| Package: regexplain | Package: regexplain | ||||
| Title: Rstudio Addin to Explain, Test and Build Regular Expressions | Title: Rstudio Addin to Explain, Test and Build Regular Expressions | ||||
| Version: 0.2.0.9000 | |||||
| Version: 0.2.1 | |||||
| Date: 2018-04-04 | Date: 2018-04-04 | ||||
| Authors@R: c( | Authors@R: c( | ||||
| person("Garrick", "Aden-Buie", email = "g.adenbuie@gmail.com", role = c("aut", "cre")), | person("Garrick", "Aden-Buie", email = "g.adenbuie@gmail.com", role = c("aut", "cre")), |
| ## regexplain 0.2.x | ## regexplain 0.2.x | ||||
| ### 0.2.1 | |||||
| * Fix addin crash when replacement function is visited but replacement field | |||||
| is not initated (#8). | |||||
| ### 0.2.0 | ### 0.2.0 | ||||
| * Added "Library" button that opens a dialog to import regex patterns sourced | * Added "Library" button that opens a dialog to import regex patterns sourced |
| options <- paste0(options, "=TRUE", collapse = ", ") | options <- paste0(options, "=TRUE", collapse = ", ") | ||||
| pattern <- paste(pattern, "#", options) | pattern <- paste(pattern, "#", options) | ||||
| } | } | ||||
| if ("regexFn_replacement" %in% names(input) && replacement() != "") { | |||||
| if ("regexFn_replacement" %in% names(input) && isTruthy(replacement())) { | |||||
| pattern <- paste0( | pattern <- paste0( | ||||
| pattern, "\n", | pattern, "\n", | ||||
| 'replacement <- "', escape_backslash(replacement()), '"' | 'replacement <- "', escape_backslash(replacement()), '"' |