statnet / statnetWeb

A graphical user interface for network modeling with the 'statnet' software
GNU General Public License v3.0
29 stars 17 forks source link

add sortable table of attribute values #45

Closed ebey closed 9 years ago

ebey commented 9 years ago

When using shiny::renderDataTable and shiny::dataTableOutput sorting of numeric attributes is incorrect (e.g. 10, 11, 2, 21). RStudio has a package DT that corrects this, but something about switching to DT::dataTableOutput and DT::renderDataTable prevents any reactive content from working.

Minimal examples with the DT package functions work properly.

ebey commented 9 years ago

Fixed the sorting issues with the shiny functions by putting the attribute values directly into a data.frame, rather than a matrix first, therefore preserving the numeric attributes.