{"action":"created","issue":{"url":"https://api.github.com/repos/yihui/knitr/issues/981","labels_url":"https://api.github.com/repos/yihui/knitr/issues/981/labels{/name}","comments_url":"https://api.github.com/repos/yihui/knitr/issues/981/comments","events_url":"https://api.github.com/repos/yihui/knitr/issues/981/events","html_url":"https://github.com/yihui/knitr/issues/981","id":63581998,"number":981,"title":"kable error: attempt to set 'colnames' on an object with less than two dimensions","user":{"login":"vapniks","id":174330,"avatar_url":"https://avatars.githubusercontent.com/u/174330?v=3","gravatar_id":"","url":"https://api.github.com/users/vapniks","html_url":"https://github.com/vapniks","followers_url":"https://api.github.com/users/vapniks/followers","following_url":"https://api.github.com/users/vapniks/following{/other_user}","gists_url":"https://api.github.com/users/vapniks/gists{/gist_id}","starred_url":"https://api.github.com/users/vapniks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vapniks/subscriptions","organizations_url":"https://api.github.com/users/vapniks/orgs","repos_url":"https://api.github.com/users/vapniks/repos","events_url":"https://api.github.com/users/vapniks/events{/privacy}","received_events_url":"https://api.github.com/users/vapniks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yihui/knitr/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yihui/knitr/milestones/22","html_url":"https://github.com/yihui/knitr/milestones/v1.10","labels_url":"https://api.github.com/repos/yihui/knitr/milestones/22/labels","id":950912,"number":22,"title":"v1.10","description":null,"creator":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":24,"state":"open","created_at":"2015-01-26T08:07:29Z","updated_at":"2015-04-01T02:14:38Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-22T22:15:51Z","updated_at":"2015-04-02T15:46:09Z","closed_at":"2015-03-31T23:36:27Z","body":"When I try to produce a kable table from a matrix or dataframe containing a mixture of numbers and strings I get an error:\r\n```\r\n> kable(matrix(list(\"a\",2,3,4),nrow=2),col.names=c(\"a\",\"b\"))\r\n\r\nError in `colnames<-`(`*tmp*`, value = c(\"a\", \"b\")) : \r\n  attempt to set 'colnames' on an object with less than two dimensions\r\n```"},"comment":{"url":"https://api.github.com/repos/yihui/knitr/issues/comments/88952369","html_url":"https://github.com/yihui/knitr/issues/981#issuecomment-88952369","issue_url":"https://api.github.com/repos/yihui/knitr/issues/981","id":88952369,"user":{"login":"vapniks","id":174330,"avatar_url":"https://avatars.githubusercontent.com/u/174330?v=3","gravatar_id":"","url":"https://api.github.com/users/vapniks","html_url":"https://github.com/vapniks","followers_url":"https://api.github.com/users/vapniks/followers","following_url":"https://api.github.com/users/vapniks/following{/other_user}","gists_url":"https://api.github.com/users/vapniks/gists{/gist_id}","starred_url":"https://api.github.com/users/vapniks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vapniks/subscriptions","organizations_url":"https://api.github.com/users/vapniks/orgs","repos_url":"https://api.github.com/users/vapniks/repos","events_url":"https://api.github.com/users/vapniks/events{/privacy}","received_events_url":"https://api.github.com/users/vapniks/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T15:46:09Z","updated_at":"2015-04-02T15:46:09Z","body":"Yep, seems to be working now thanks."}}