Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Similar documents
Package jstree. October 24, 2017

Package datasets.load

Package slickr. March 6, 2018

Package editdata. October 7, 2017

Package shinyhelper. June 21, 2018

Package projector. February 27, 2018

Package shinyfeedback

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package repec. August 31, 2018

Package SEMrushR. November 3, 2018

Package crossword.r. January 19, 2018

Package fastdummies. January 8, 2018

Package shiny.semantic

Package gtrendsr. October 19, 2017

Package canvasxpress

Package messaging. May 27, 2018

Package WordR. September 7, 2017

Package texpreview. August 15, 2018

Package spelling. December 18, 2017

Package gtrendsr. August 4, 2018

Package pairsd3. R topics documented: August 29, Title D3 Scatterplot Matrices Version 0.1.0

Package sessioninfo. June 21, 2017

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package ECctmc. May 1, 2018

Package d3plus. September 25, 2017

Package ecoseries. R topics documented: September 27, 2017

Package validara. October 19, 2017

Package barcoder. October 26, 2018

Package calpassapi. August 25, 2018

Package collapsibletree

Package clipr. June 23, 2018

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package spark. July 21, 2017

Package kirby21.base

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package shiny.router

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package available. November 17, 2017

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package strat. November 23, 2016

Package bisect. April 16, 2018

Package colourpicker

Package carbonate. R topics documented: October 14, 2018

Package shinyaframe. November 26, 2017

Package sfc. August 29, 2016

Package tm.plugin.lexisnexis

Package pdfsearch. July 10, 2018

Package tidyselect. October 11, 2018

Package githubinstall

Package ether. September 22, 2018

Package mdftracks. February 6, 2017

Package semver. January 6, 2017

Package curry. September 28, 2016

Package weco. May 4, 2018

Package deductive. June 2, 2017

Package AhoCorasickTrie

Package semantic.dashboard

Package tidyimpute. March 5, 2018

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package datapasta. January 24, 2018

Package htmltidy. September 29, 2017

Package liftr. R topics documented: May 14, Type Package

Package dbx. July 5, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package wrswor. R topics documented: February 2, Type Package

Package profvis. R topics documented:

Package d3heatmap. February 1, 2018

Package autoshiny. June 25, 2018

Package balance. October 12, 2018

Package eply. April 6, 2018

Package rmatio. July 28, 2017

Package aws.transcribe

Package sigmanet. April 23, 2018

Package wikitaxa. December 21, 2017

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package sankey. R topics documented: October 22, 2017

Package estprod. May 2, 2018

Package raker. October 10, 2017

Package IATScore. January 10, 2018

Package rngtools. May 15, 2018

Package data.world. April 5, 2018

Package effectr. January 17, 2018

Package librarian. R topics documented:

Package docxtools. July 6, 2018

Package coga. May 8, 2018

Package knitrprogressbar

Package vesselr. R topics documented: April 3, Type Package

Package opencage. January 16, 2018

Package vdiffr. April 27, 2018

Package TrafficBDE. March 1, 2018

Package qualmap. R topics documented: September 12, Type Package

Package radix. September 17, 2018

Package redux. May 31, 2018

Package rtext. January 23, 2019

Package fusionclust. September 19, 2017

Package readobj. November 2, 2017

Package tabulizer. June 7, 2018

Package modules. July 22, 2017

Package geniusr. December 6, 2017

Transcription:

Version 1.0.0 Date 2017-09-22 Title Regular Expressions in 'shiny' Select Lists Package regexselect September 22, 2017 Description 'shiny' extension that adds regular expression filtering capabilities to the choice vector of the select list. Depends R (>= 2.3.0 Imports shiny, shinyjs License GPL-2 GPL-3 URL https://github.com/yonicd/regexselect BugReports https://github.com/yonicd/regexselect/issues Encoding UTF-8 LazyData true RoxygenNote 6.0.1 NeedsCompilation no Author Jonathan Sidi [aut, cre] Maintainer Jonathan Sidi <yonicd@gmail.com> Repository CRAN Date/Publication 2017-09-22 15:45:17 UTC R topics documented: regexselect......................................... 2 regexselectui........................................ 3 Index 5 1

2 regexselect regexselect Create a selectize list input control with regular expression capabilities Description Usage Create a selectize list that can be used to choose a single or multiple items from a list of values with extension for regular expression. regexselect(input, output, session, data Arguments input output session data The input slot that will be used to access the value. The output variable to read the list of values returned be regex query The session of the shiny application reactive element contains a character vector where matches are sought, or an object which can be coerced by as.character to a character vector Value reactive character vector Examples if(interactive({ ui <- shiny::fluidpage( regexselectui(id = "a", label = "Variable:",choices = names(iris, shiny::tableoutput("data" ui.show <- shiny::fluidpage( regexselectui(id = "a", label = "Variable:",choices = names(iris,checkbox.show = TRUE, shiny::tableoutput("data" server <- function(input, output, session { curr_cols<-shiny::callmodule(regexselect, "a",shiny::reactive(names(iris shiny::observeevent(curr_cols(,{ cols_now<-curr_cols( if(length(cols_now==0 cols_now<-names(data( output$data <- shiny::rendertable({iris[,cols_now, drop = FALSE], rownames = TRUE

regexselectui 3 #do not show regex checkboxes shiny::shinyapp(ui, server #show regex checkboxes shiny::shinyapp(ui.show, server regexselectui Create UI object for a selectize list input control with regular expression capabilities Description Usage Create UI object for a selectize list that can be used to choose a single or multiple items from a list of values with extension for regular expression. regexselectui(id, label, choices, checkbox.selected = c("enable", "ignore.case", checkbox.inline = TRUE, checkbox.show = FALSE Arguments id label id of shiny module used in regexselect character, label of the selectize object choices List of values to select from. If elements of the list are named, then that name rather than the value is displayed to the user. This can also be a named list whose elements are (either named or unnamed lists or vectors. If this is the case, the outermost names will be used as the "optgroup" label for the elements in the respective sublist. This allows you to group and label similar choices. checkbox.selected character, options of the checkbox to set as TRUE, see details, Default: c("enable", "ignore.case" checkbox.inline boolean, render the checkbox choices inline (i.e. horizontally, Default: TRUE Details checkbox.show boolean, show the checkbox options as part of UI output or hide them, Default: FALSE checkbox.selected is used as a proxy for ellipses to pass arguments to a grep(selectize value, selectize choices,value=true,... This makes the options in checkbox.selected the same as the arguments that pass to grep: ignore.case, perl,fixed and invert. In addition there are two more arguments that the user can set enable which toggles the grep functionality to return it to regular selectize with options multiple=true and create=true. The other

4 regexselectui Value argument is retain, this lets the user control if the search terms are added to the selectize choices or to keep it as originally entered, there by converting the selectize into a search field. If checkbox.show is false the initial values passed through checkbox.selected will be used. A list of HTML elements that can be added to a UI definition. Examples if(interactive({ ui <- shiny::fluidpage( regexselectui(id = "a", label = "Variable:",choices = names(iris, shiny::tableoutput("data" ui.show <- shiny::fluidpage( regexselectui(id = "a", label = "Variable:",choices = names(iris,checkbox.show = TRUE, shiny::tableoutput("data" server <- function(input, output, session { curr_cols<-shiny::callmodule(regexselect, "a",shiny::reactive(names(iris shiny::observeevent(curr_cols(,{ cols_now<-curr_cols( if(length(cols_now==0 cols_now<-names(data( output$data <- shiny::rendertable({iris[,cols_now, drop = FALSE], rownames = TRUE #do not show regex checkboxes shiny::shinyapp(ui, server #show regex checkboxes shiny::shinyapp(ui.show, server

Index regexselect, 2 regexselectui, 3 5