INWTlab / shinyMatrix

https://inwtlab.github.io/shinyMatrix/
Other
19 stars 6 forks source link

matrixInput: row names affect matrix extensibility #1

Closed SarahWagner closed 5 years ago

SarahWagner commented 5 years ago

The following example, where the row names are set to TRUE works perfectly, i.e. the matrix extends as I add data.

 matrixInput(
                 inputId = "dataMatrix",
                 class = "numeric",
                 value = matrix(),
                 copy = TRUE,
                 paste = TRUE,
                 cols = list(
                   names = TRUE,
                   extend = TRUE,
                   delta = 1,
                   editableNames = TRUE
                 ),
                 rows = list(
                   names = TRUE,
                   editableNames = TRUE,
                   extend = TRUE,
                   delta = 1
                 ) 
               )

As I change the name option in rows to FALSE, the matrix does not extend anymore.

 matrixInput(
                 inputId = "dataMatrix",
                 class = "numeric",
                 value = matrix(),
                 copy = TRUE,
                 paste = TRUE,
                 cols = list(
                   names = TRUE,
                   extend = TRUE,
                   delta = 1,
                   editableNames = TRUE
                 ),
                 rows = list(
                   names = FALSE,
                   editableNames = TRUE,
                   extend = TRUE,
                   delta = 1
                 ) 
               )
aneudecker commented 5 years ago

Error message: image

aneudecker commented 5 years ago

fixed as of 0.1.3.

@SarahWagner can you check if it works now?