{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/rmarkdown/issues/1384","repository_url":"https://api.github.com/repos/rstudio/rmarkdown","labels_url":"https://api.github.com/repos/rstudio/rmarkdown/issues/1384/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/rmarkdown/issues/1384/comments","events_url":"https://api.github.com/repos/rstudio/rmarkdown/issues/1384/events","html_url":"https://github.com/rstudio/rmarkdown/issues/1384","id":335540550,"node_id":"MDU6SXNzdWUzMzU1NDA1NTA=","number":1384,"title":"! Undefined control sequence. l.115 \\toprule","user":{"login":"phillip-toone","id":5975365,"node_id":"MDQ6VXNlcjU5NzUzNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/5975365?v=4","gravatar_id":"","url":"https://api.github.com/users/phillip-toone","html_url":"https://github.com/phillip-toone","followers_url":"https://api.github.com/users/phillip-toone/followers","following_url":"https://api.github.com/users/phillip-toone/following{/other_user}","gists_url":"https://api.github.com/users/phillip-toone/gists{/gist_id}","starred_url":"https://api.github.com/users/phillip-toone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillip-toone/subscriptions","organizations_url":"https://api.github.com/users/phillip-toone/orgs","repos_url":"https://api.github.com/users/phillip-toone/repos","events_url":"https://api.github.com/users/phillip-toone/events{/privacy}","received_events_url":"https://api.github.com/users/phillip-toone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-25T19:39:43Z","updated_at":"2018-06-25T20:47:22Z","closed_at":null,"author_association":"NONE","body":"I get this error:\r\n\r\n> ! Undefined control sequence.\r\n> l.115 \\toprule\r\n\r\nWhen I run this code obtained from [this](https://github.com/haozhu233/kableExtra/blob/master/vignettes/awesome_table_in_pdf.Rmd#linebreak-processor) kableExtra vignette:\r\n\r\n````\r\n---\r\noutput:\r\n  pdf_document:\r\n    toc: false\r\n    template: default.latex\r\n---\r\n\r\n```{r, include=FALSE}\r\nlibrary(dplyr)\r\nlibrary(kableExtra)\r\n```\r\n\r\n```{r, echo=FALSE}\r\ndt_lb <- data.frame(\r\n  Item = c(\"Hello\\nWorld\", \"This\\nis a cat\"), \r\n  Value = c(10, 100)\r\n)\r\n\r\ndt_lb %>%\r\n  mutate_all(linebreak) %>%\r\n  kable(\"latex\", booktabs = T, escape = F,\r\n        col.names = linebreak(c(\"Item\\n(Name)\", \"Value\\n(Number)\"), align = \"c\"))\r\n```\r\n````\r\n\r\nThis error is ONLY generated when I specify a template file.  For example:\r\n\r\n````\r\n---\r\noutput:\r\n  pdf_document:\r\n    toc: false\r\n---\r\n\r\n```{r, include=FALSE}\r\nlibrary(dplyr)\r\nlibrary(kableExtra)\r\n```\r\n\r\n```{r, echo=FALSE}\r\ndt_lb <- data.frame(\r\n  Item = c(\"Hello\\nWorld\", \"This\\nis a cat\"), \r\n  Value = c(10, 100)\r\n)\r\n\r\ndt_lb %>%\r\n  mutate_all(linebreak) %>%\r\n  kable(\"latex\", booktabs = T, escape = F,\r\n        col.names = linebreak(c(\"Item\\n(Name)\", \"Value\\n(Number)\"), align = \"c\"))\r\n```\r\n````\r\ndoes not generate this error."},"comment":{"url":"https://api.github.com/repos/rstudio/rmarkdown/issues/comments/400090108","html_url":"https://github.com/rstudio/rmarkdown/issues/1384#issuecomment-400090108","issue_url":"https://api.github.com/repos/rstudio/rmarkdown/issues/1384","id":400090108,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDA5MDEwOA==","user":{"login":"yihui","id":163582,"node_id":"MDQ6VXNlcjE2MzU4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/163582?v=4","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},"created_at":"2018-06-25T20:47:22Z","updated_at":"2018-06-25T20:47:22Z","author_association":"MEMBER","body":"Okay. Thanks for the explanation!\r\n\r\nCc @haozhu233 (author of **kableExtra**)."}}
{"actor":{"display_login":"yihui"}}