{"action":"created","issue":{"url":"https://api.github.com/repos/jrowen/rhandsontable/issues/124","repository_url":"https://api.github.com/repos/jrowen/rhandsontable","labels_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/124/comments","events_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/124/events","html_url":"https://github.com/jrowen/rhandsontable/issues/124","id":188374226,"number":124,"title":"Copying and pasting into rhandsontable","user":{"login":"bklingen","id":4784206,"avatar_url":"https://avatars.githubusercontent.com/u/4784206?v=3","gravatar_id":"","url":"https://api.github.com/users/bklingen","html_url":"https://github.com/bklingen","followers_url":"https://api.github.com/users/bklingen/followers","following_url":"https://api.github.com/users/bklingen/following{/other_user}","gists_url":"https://api.github.com/users/bklingen/gists{/gist_id}","starred_url":"https://api.github.com/users/bklingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bklingen/subscriptions","organizations_url":"https://api.github.com/users/bklingen/orgs","repos_url":"https://api.github.com/users/bklingen/repos","events_url":"https://api.github.com/users/bklingen/events{/privacy}","received_events_url":"https://api.github.com/users/bklingen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-09T22:55:26Z","updated_at":"2016-11-15T21:42:36Z","closed_at":null,"body":"For a regular rhandsontable\r\n\r\nrhandsontable(data.frame(Var1=1:5))\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4784206/20157542/9b0beabe-a6a3-11e6-92ab-5d83b9822c6d.png)\r\n\r\n\r\none can copy a column of values (with the column longer than the initial rhandsontable),\r\n\r\n10\r\n9\r\n8\r\n7\r\n6\r\n5\r\n7\r\n\r\nand paste it into the table effortlessly (i.e., by clicking in the first cell and pasting the values in):\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4784206/20157569/c2029e38-a6a3-11e6-896d-37404c97bbb1.png)\r\n\r\n\r\nHowever, doing the same within shiny doesn't work:\r\n\r\n```{r}\r\nlibrary(shiny)\r\nlibrary(rhandsontable)\r\nmyApp <- shinyApp(\r\nui = fluidPage(\r\n  rHandsontableOutput(\"hot\")\r\n),\r\nserver = function(input, output, session) {\r\n  output$hot <- renderRHandsontable({\r\n    if (!is.null(input$hot)) {\r\n      DF <- hot_to_r(input$hot)\r\n    } else {\r\n      DF <- data.frame(Var1=1:5)\r\n    }\r\n    mytab <- rhandsontable(DF, colHeaders=TRUE, rowHeaders=TRUE)\r\n    return(mytab)\r\n  })\r\n}\r\n)\r\nrunApp(myApp)\r\n```\r\n\r\nAfter pasting the values in, the following error is given:\r\n\r\nWarning: Error in row.names<-.data.frame: invalid 'row.names' length\r\nStack trace (innermost first):\r\n    84: row.names<-.data.frame\r\n    83: row.names<-\r\n    82: rownames<-\r\n    81: <Anonymous>\r\n    80: do.call\r\n    79: hot_to_r\r\n    78: func [#8]\r\n    77: origRenderFunc\r\n    76: output$hot\r\n     1: runApp\r\n\r\nNow, as long as the number of values pasted in is not larger than the existing numbers of rows in the rhandsontable, everything works fine. For instance, just copying and pasting the first three values works fine:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4784206/20157785/efb0d8e4-a6a4-11e6-8600-e50db8f5c2c0.png)\r\n\r\n\r\nI think copy and pasting (of any length column) used to work in earlier versions, but I may be wrong. It does not seem to work in versions 0.3.3 and 0.3.4.\r\n"},"comment":{"url":"https://api.github.com/repos/jrowen/rhandsontable/issues/comments/260778524","html_url":"https://github.com/jrowen/rhandsontable/issues/124#issuecomment-260778524","issue_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/124","id":260778524,"user":{"login":"bklingen","id":4784206,"avatar_url":"https://avatars.githubusercontent.com/u/4784206?v=3","gravatar_id":"","url":"https://api.github.com/users/bklingen","html_url":"https://github.com/bklingen","followers_url":"https://api.github.com/users/bklingen/followers","following_url":"https://api.github.com/users/bklingen/following{/other_user}","gists_url":"https://api.github.com/users/bklingen/gists{/gist_id}","starred_url":"https://api.github.com/users/bklingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bklingen/subscriptions","organizations_url":"https://api.github.com/users/bklingen/orgs","repos_url":"https://api.github.com/users/bklingen/repos","events_url":"https://api.github.com/users/bklingen/events{/privacy}","received_events_url":"https://api.github.com/users/bklingen/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T21:42:36Z","updated_at":"2016-11-15T21:42:36Z","body":"With the latest push, this issue has been fixed!. Thanks! (see also #126)"}}
{"actor":{"display_login":"bklingen"}}