소스 검색

Change gadget output from "regex" -> "pattern"

for consistency with base and stringr argument names. Left "Send regex to console" button text same for consistency with tabs in gadget.
tags/v0.1.3
Garrick Aden-Buie 8 년 전
부모
커밋
0627759257
4개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. +1
    -1
      R/regex_gadget.R
  2. +2
    -0
      R/regex_help.R
  3. +1
    -1
      Readme.Rmd
  4. +1
    -1
      Readme.md

+ 1
- 1
R/regex_gadget.R 파일 보기

@@ -169,7 +169,7 @@ regex_gadget <- function(text = NULL,
observeEvent(input$done, {
# browser()
if (pattern() != "") {
pattern <- paste0('regex <- "', escape_backslash(pattern()), '"')
pattern <- paste0('pattern <- "', escape_backslash(pattern()), '"')
rstudioapi::sendToConsole(pattern, FALSE)
}
stopApp()

+ 2
- 0
R/regex_help.R 파일 보기

@@ -29,6 +29,8 @@ regexplain_cheatsheet <- function() {
runGadget(ui, server, viewer = viewer)
}

# ---- Help - Shiny Module ----

help_ui <- function(id) {
ns <- NS(id)


+ 1
- 1
Readme.Rmd 파일 보기

@@ -55,7 +55,7 @@ The addin will open an interface with 4 panes where you can
When you're done, click on the **Send Regex to Console** to send your regex expression to... the console!

```r
> regex <- "(is|were|was) ([[:alpha:]]+) ([[:alpha:]]+)"
> pattern <- "(is|were|was) ([[:alpha:]]+) ([[:alpha:]]+)"
```

### Additional Addins

+ 1
- 1
Readme.md 파일 보기

@@ -58,7 +58,7 @@ When you’re done, click on the **Send Regex to Console** to send your
regex expression to… the console\!

``` r
> regex <- "(is|were|was) ([[:alpha:]]+) ([[:alpha:]]+)"
> pattern <- "(is|were|was) ([[:alpha:]]+) ([[:alpha:]]+)"
```

### Additional Addins

Loading…
취소
저장