You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rhandsontable objects created using a matrix object cannot be converted back to R via hot_to_r. As shown in the below example the conversion seems to be limited to data.frames:
library(shiny)
library(rhandsontable)
ui <- fluidPage(
rHandsontableOutput("myTable"),
tableOutput("my2ndTable")
)
server <- function(input, output, session) {
# output$myTable <- renderRHandsontable({rhandsontable(as.data.frame(matrix(c(1:25) * i, ncol = 5, nrow = 5)))}) # works
output$myTable <- renderRHandsontable({rhandsontable(matrix(c(1:25) * i, ncol = 5, nrow = 5))}) # doesn't work
output$my2ndTable <- renderTable({
hot_to_r(req(input$myTable))
})
}
shinyApp(ui, server)
rhandsontable objects created using a matrix object cannot be converted back to R via
hot_to_r
. As shown in the below example the conversion seems to be limited todata.frame
s:I saw this problem here first.
The text was updated successfully, but these errors were encountered: