{"action":"created","issue":{"url":"https://api.github.com/repos/davidgohel/flextable/issues/38","repository_url":"https://api.github.com/repos/davidgohel/flextable","labels_url":"https://api.github.com/repos/davidgohel/flextable/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/davidgohel/flextable/issues/38/comments","events_url":"https://api.github.com/repos/davidgohel/flextable/issues/38/events","html_url":"https://github.com/davidgohel/flextable/issues/38","id":275636583,"number":38,"title":"regulartable() not working with dataframes that has columns that contains spaces in header","user":{"login":"HElwy","id":3015874,"avatar_url":"https://avatars2.githubusercontent.com/u/3015874?v=4","gravatar_id":"","url":"https://api.github.com/users/HElwy","html_url":"https://github.com/HElwy","followers_url":"https://api.github.com/users/HElwy/followers","following_url":"https://api.github.com/users/HElwy/following{/other_user}","gists_url":"https://api.github.com/users/HElwy/gists{/gist_id}","starred_url":"https://api.github.com/users/HElwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HElwy/subscriptions","organizations_url":"https://api.github.com/users/HElwy/orgs","repos_url":"https://api.github.com/users/HElwy/repos","events_url":"https://api.github.com/users/HElwy/events{/privacy}","received_events_url":"https://api.github.com/users/HElwy/received_events","type":"User","site_admin":false},"labels":[{"id":399640977,"url":"https://api.github.com/repos/davidgohel/flextable/labels/invalid","name":"invalid","color":"e6e6e6","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-21T09:15:24Z","updated_at":"2017-11-27T05:18:32Z","closed_at":"2017-11-21T11:53:33Z","author_association":"NONE","body":"regulartable() works fine for me as long as all the columns don't contain spaces, when one of the column has a space it presents the error below\r\n\r\n```\r\nx <- iris\r\nregulartable(x) # Works Fine\r\n\r\nx[,\"NoSpaces\"] <- \"\"\r\nregulartable(x) # Works Fine\r\n\r\nx[,\"With Spaces\"] <- \"\"\r\nregulartable(x) # Error in `[.data.frame`(x$dataset, x$col_keys) : undefined columns selected\r\n```\r\n\r\nEdit: Also, a side question, is it possible to add the table to pptx so that it would fit the body size? Autofit() seems to fit for the largest cell (excel style), what I need is for example in a \"Table and Content\" styled page, I can add the table and it would automatically fit to the size of the body frame, like in ReporteRs."},"comment":{"url":"https://api.github.com/repos/davidgohel/flextable/issues/comments/347081229","html_url":"https://github.com/davidgohel/flextable/issues/38#issuecomment-347081229","issue_url":"https://api.github.com/repos/davidgohel/flextable/issues/38","id":347081229,"user":{"login":"HElwy","id":3015874,"avatar_url":"https://avatars2.githubusercontent.com/u/3015874?v=4","gravatar_id":"","url":"https://api.github.com/users/HElwy","html_url":"https://github.com/HElwy","followers_url":"https://api.github.com/users/HElwy/followers","following_url":"https://api.github.com/users/HElwy/following{/other_user}","gists_url":"https://api.github.com/users/HElwy/gists{/gist_id}","starred_url":"https://api.github.com/users/HElwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HElwy/subscriptions","organizations_url":"https://api.github.com/users/HElwy/orgs","repos_url":"https://api.github.com/users/HElwy/repos","events_url":"https://api.github.com/users/HElwy/events{/privacy}","received_events_url":"https://api.github.com/users/HElwy/received_events","type":"User","site_admin":false},"created_at":"2017-11-27T05:18:32Z","updated_at":"2017-11-27T05:18:32Z","author_association":"NONE","body":"What is that all about? You told me to add the sessionInfo() and then closed the thread before I can do anything nor did I confirm that fixed the issue, so I looked for the solution myself, and when I found it, i posted it in case someone searches for the same issue, not sure what is your problem. Also, answering an extra yes/no question wouldn't have caused you any delay IMO.\r\n\r\nThe thing is, I didn't say anything 😄, despite the fact handling the whole issue was weird, what the hell was that."}}
{"actor":{"display_login":"HElwy"}}