Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Charles Determan Jr
Thank you for checking Yihui, on the off chance are you familiar with any other methods to filter on multiple conditions? On Tue, Sep 2, 2014 at 11:07 PM, Yihui Xie x...@yihui.name wrote: I just tested it and this plugin does not seem to work with the new .DataTable() API in DataTables

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Yihui Xie
The built-in version of DataTables in shiny has already supported numeric ranges. For a numeric column x in data, if you type a,b in the search box, the data will be filtered using a = x = b. The check boxes are not supported, but you can use regular expressions (more flexible) to achieve the same

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Charles Determan Jr
Thank you Yihui, this would certainly work for me however I have having trouble getting the regex to work appropriately. I am using the developmental version of shiny and have copied your code. I launch the app and the filtering of numbers works fine (i.e. 4,5) but the search for setosa and

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Yihui Xie
It looks like a problem of DataTables -- I cannot find a way to specify the search.regex option for individual columns. You may ask this question on the DataTables forum. Basically I was expecting this to work: .DataTable({ search: { regex: true }, columnDefs: [{ search: { regex: true },

[R] shiny datatables column filtering plugin

2014-09-02 Thread Charles Determan Jr
Greetings, I am currently exploring some capabilities of the 'Shiny' package. I am currently working with the most recent version of 'shiny' from the rstudio github repository (version - 0.10.1.9006) in order to use the most up to date datatables plugin. Using the ggplot2 diamonds dataset, I

Re: [R] shiny datatables column filtering plugin

2014-09-02 Thread Yihui Xie
I just tested it and this plugin does not seem to work with the new .DataTable() API in DataTables 1.10.x, so I guess it is unlikely to make it work in (the current development version of) shiny. It is not in the official list of plugins, either: http://www.datatables.net/extensions/index