{"action":"created","issue":{"url":"https://api.github.com/repos/haozhu233/kableExtra/issues/17","repository_url":"https://api.github.com/repos/haozhu233/kableExtra","labels_url":"https://api.github.com/repos/haozhu233/kableExtra/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/haozhu233/kableExtra/issues/17/comments","events_url":"https://api.github.com/repos/haozhu233/kableExtra/issues/17/events","html_url":"https://github.com/haozhu233/kableExtra/issues/17","id":235891054,"number":17,"title":"add_header_above appearing below colnames","user":{"login":"PatWilson","id":27575594,"avatar_url":"https://avatars2.githubusercontent.com/u/27575594?v=4","gravatar_id":"","url":"https://api.github.com/users/PatWilson","html_url":"https://github.com/PatWilson","followers_url":"https://api.github.com/users/PatWilson/followers","following_url":"https://api.github.com/users/PatWilson/following{/other_user}","gists_url":"https://api.github.com/users/PatWilson/gists{/gist_id}","starred_url":"https://api.github.com/users/PatWilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatWilson/subscriptions","organizations_url":"https://api.github.com/users/PatWilson/orgs","repos_url":"https://api.github.com/users/PatWilson/repos","events_url":"https://api.github.com/users/PatWilson/events{/privacy}","received_events_url":"https://api.github.com/users/PatWilson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-14T14:05:11Z","updated_at":"2018-05-18T18:45:43Z","closed_at":"2017-06-14T23:06:08Z","author_association":"NONE","body":"Hello I am trying to recreate an example in the vignette and I am having some trouble.  The columns  names are appearing above the add_head_above characters instead of below.  Here is the code I am running and my session info.   I am also running it in rstudio and using the knit button \r\n```\r\nlibrary(knitr)\r\nlibrary(kableExtra)\r\nlibrary(methods)\r\n\r\noptions(knitr.table.format = \"html\") \r\n\r\n\r\ndt <- mtcars[1:5, 1:6]\r\nkable(dt) %>%\r\n  kable_styling(\"striped\") %>%\r\n  add_header_above(c(\" \", \"Group 1\" = 2, \"Group 2\" = 2, \"Group 3\" = 2)) \r\nsessionInfo()\r\n```\r\n\r\n```\r\n## R version 3.2.3 (2015-12-10)\r\n## Platform: x86_64-pc-linux-gnu (64-bit)\r\n## Running under: CentOS release 6.9 (Final)\r\n## \r\n## locale:\r\n##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              \r\n##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    \r\n##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   \r\n##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 \r\n##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            \r\n## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       \r\n## \r\n## attached base packages:\r\n## [1] graphics  grDevices utils     datasets  stats     methods   base     \r\n## \r\n## other attached packages:\r\n## [1] kableExtra_0.2.1.9000 knitr_1.16            survival_2.40-2      \r\n## [4] rlocal_4.2.0          arsenal_0.4.2        \r\n## \r\n## loaded via a namespace (and not attached):\r\n##  [1] Rcpp_0.12.11    xml2_1.0.0      magrittr_1.5    splines_3.2.3  \r\n##  [5] rvest_0.3.2     lattice_0.20-34 R6_2.2.1        highr_0.6      \r\n##  [9] stringr_1.2.0   httr_1.2.1      tools_3.2.3     grid_3.2.3     \r\n## [13] htmltools_0.3.6 yaml_2.1.14     rprojroot_1.2   digest_0.6.12  \r\n## [17] tibble_1.3.0    Matrix_1.2-7.1  readr_1.0.0     evaluate_0.10  \r\n## [21] rmarkdown_1.5   stringi_1.1.5   backports_1.0.3\r\n```\r\nThanks for any help you can provide!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/haozhu233/kableExtra/issues/comments/390298015","html_url":"https://github.com/haozhu233/kableExtra/issues/17#issuecomment-390298015","issue_url":"https://api.github.com/repos/haozhu233/kableExtra/issues/17","id":390298015,"user":{"login":"lahvak","id":3579225,"avatar_url":"https://avatars2.githubusercontent.com/u/3579225?v=4","gravatar_id":"","url":"https://api.github.com/users/lahvak","html_url":"https://github.com/lahvak","followers_url":"https://api.github.com/users/lahvak/followers","following_url":"https://api.github.com/users/lahvak/following{/other_user}","gists_url":"https://api.github.com/users/lahvak/gists{/gist_id}","starred_url":"https://api.github.com/users/lahvak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lahvak/subscriptions","organizations_url":"https://api.github.com/users/lahvak/orgs","repos_url":"https://api.github.com/users/lahvak/repos","events_url":"https://api.github.com/users/lahvak/events{/privacy}","received_events_url":"https://api.github.com/users/lahvak/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T18:45:43Z","updated_at":"2018-05-18T18:45:43Z","author_association":"NONE","body":"I seem to be having the same issue, with R version 3.4.1, and current CRAN kableExtra (0.8.0)\r\n\r\nRunning the same code as the OP, this is the session info:\r\n\r\n```## R version 3.4.1 (2017-06-30)\r\n## Platform: x86_64-pc-linux-gnu (64-bit)\r\n## Running under: Debian GNU/Linux buster/sid\r\n## \r\n## Matrix products: default\r\n## BLAS: /usr/lib/openblas-base/libblas.so.3\r\n## LAPACK: /usr/lib/libopenblasp-r0.2.19.so\r\n## \r\n## locale:\r\n##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              \r\n##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    \r\n##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   \r\n##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 \r\n##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            \r\n## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       \r\n## \r\n## attached base packages:\r\n## [1] stats     graphics  grDevices utils     datasets  methods   base     \r\n## \r\n## other attached packages:\r\n## [1] kableExtra_0.8.0 knitr_1.17       rmarkdown_1.6    nvimcom_0.9-71  \r\n## [5] colorout_1.0-3   vimcom_1.2-6     setwidth_1.0-4  \r\n## \r\n## loaded via a namespace (and not attached):\r\n##  [1] Rcpp_0.12.12      rstudioapi_0.6    xml2_1.0.0       \r\n##  [4] magrittr_1.5      hms_0.3           rvest_0.3.2      \r\n##  [7] munsell_0.4.3     viridisLite_0.2.0 colorspace_1.3-2 \r\n## [10] R6_2.2.0          rlang_0.1.2       highr_0.6        \r\n## [13] plyr_1.8.4        stringr_1.2.0     httr_1.2.1       \r\n## [16] tools_3.4.1       htmltools_0.3.6   rprojroot_1.2    \r\n## [19] digest_0.6.12     tibble_1.3.3      readr_1.1.0      \r\n## [22] evaluate_0.10     stringi_1.1.5     compiler_3.4.1   \r\n## [25] scales_0.4.1      backports_1.0.5\r\n```\r\n\r\nI run the code from a rmarkdown document, knitting to html from Nvim-R."}}
{"actor":{"display_login":"lahvak"}}