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

Fix #8 use shiny::isTruthy on replacement in addin

tags/v0.2.1
Garrick Aden-Buie 8 лет назад
Родитель
Сommit
e91c7a6db9
3 измененных файлов: 7 добавлений и 2 удалений
  1. +1
    -1
      DESCRIPTION
  2. +5
    -0
      NEWS.md
  3. +1
    -1
      R/regex_gadget.R

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

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")),

+ 5
- 0
NEWS.md Просмотреть файл

## 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

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

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()), '"'

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