Ver código fonte

Adjust selection of Harvard Sentences for color example

tags/v0.2.0
Garrick Aden-Buie 8 anos atrás
pai
commit
8bc4bec7ee
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      R/regex_gadget.R

+ 1
- 1
R/regex_gadget.R Ver arquivo

@@ -451,7 +451,7 @@ regex_gadget <- function(text = NULL,
})

observeEvent(input$help_try_this_hs_colors_text, {
color_match <- "\\b(red|orange|yellow|green|blue|purple|he)\\b|red"
color_match <- "\\b(red|orange|yellow|green|blue|purple)\\b|red"
color_text <- stringr::sentences[grepl(color_match, stringr::sentences)]
color_text <- sample(color_text, 25)
updateTextAreaInput(session, "text", value = paste(color_text, collapse = "\n"))

Carregando…
Cancelar
Salvar