{"action":"created","issue":{"url":"https://api.github.com/repos/jrowen/rhandsontable/issues/126","repository_url":"https://api.github.com/repos/jrowen/rhandsontable","labels_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/126/comments","events_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/126/events","html_url":"https://github.com/jrowen/rhandsontable/issues/126","id":188673591,"number":126,"title":"Error when adding/removing multiple rows","user":{"login":"dansmith01","id":2066273,"avatar_url":"https://avatars.githubusercontent.com/u/2066273?v=3","gravatar_id":"","url":"https://api.github.com/users/dansmith01","html_url":"https://github.com/dansmith01","followers_url":"https://api.github.com/users/dansmith01/followers","following_url":"https://api.github.com/users/dansmith01/following{/other_user}","gists_url":"https://api.github.com/users/dansmith01/gists{/gist_id}","starred_url":"https://api.github.com/users/dansmith01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dansmith01/subscriptions","organizations_url":"https://api.github.com/users/dansmith01/orgs","repos_url":"https://api.github.com/users/dansmith01/repos","events_url":"https://api.github.com/users/dansmith01/events{/privacy}","received_events_url":"https://api.github.com/users/dansmith01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-11T02:55:38Z","updated_at":"2016-11-15T22:47:46Z","closed_at":null,"body":"Here is some code to reproduce the issue I'm seeing:\r\n\r\n```\r\nlibrary(shiny)\r\nlibrary(rhandsontable)\r\n\r\nui <- fluidPage(\r\n  rHandsontableOutput(\"in.table\"),\r\n  actionButton(\"Save\", \"Save\")\r\n)\r\n\r\nserver <- function(input, output) {\r\n  \r\n  output$in.table <- renderRHandsontable({\r\n    rhandsontable(data.frame(\"UserID\" = 1:5, \"Name\" = LETTERS[1:5]))\r\n  })\r\n  \r\n  observeEvent(input$Save, {\r\n    df <- hot_to_r(input$in.table)\r\n    print(df)\r\n  })\r\n  \r\n}\r\n\r\nshinyApp(ui = ui, server = server)\r\n```\r\n\r\nInsert/delete as follows to cause the error.\r\n1. Click on \"B\" row and add a row above.\r\n2. Click on \"B\" row again and add another row above.\r\n3. Delete \"D\" row.\r\n4. Click \"Save\".\r\n\r\nR crashes with the following message:\r\n\r\n```\r\nWarning: Error in row.names<-.data.frame: invalid 'row.names' length\r\nStack trace (innermost first):\r\n    71: row.names<-.data.frame\r\n    70: row.names<-\r\n    69: rownames<-\r\n    68: <Anonymous>\r\n    67: do.call\r\n    66: hot_to_r\r\n    65: observeEventHandler [C:\\Users\\...\\app.R#20]\r\n     1: shiny::runApp\r\n```\r\n\r\nI'm using the latest version of rhandsontable installed today with `devtools::install_github(\"jrowen/rhandsontable\")`."},"comment":{"url":"https://api.github.com/repos/jrowen/rhandsontable/issues/comments/260795237","html_url":"https://github.com/jrowen/rhandsontable/issues/126#issuecomment-260795237","issue_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/126","id":260795237,"user":{"login":"dansmith01","id":2066273,"avatar_url":"https://avatars.githubusercontent.com/u/2066273?v=3","gravatar_id":"","url":"https://api.github.com/users/dansmith01","html_url":"https://github.com/dansmith01","followers_url":"https://api.github.com/users/dansmith01/followers","following_url":"https://api.github.com/users/dansmith01/following{/other_user}","gists_url":"https://api.github.com/users/dansmith01/gists{/gist_id}","starred_url":"https://api.github.com/users/dansmith01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dansmith01/subscriptions","organizations_url":"https://api.github.com/users/dansmith01/orgs","repos_url":"https://api.github.com/users/dansmith01/repos","events_url":"https://api.github.com/users/dansmith01/events{/privacy}","received_events_url":"https://api.github.com/users/dansmith01/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T22:47:46Z","updated_at":"2016-11-15T22:47:46Z","body":"Hi @jrowen, yep, that fixed it, thanks!!"}}
{"actor":{"display_login":"dansmith01"}}