{"id":32178569,"url":"https://github.com/haozhu233/kableextra","last_synced_at":"2025-10-21T20:57:54.774Z","repository":{"id":2761111,"uuid":"45635990","full_name":"haozhu233/kableExtra","owner":"haozhu233","description":"Construct Complex Table with knitr::kable() + pipe. ","archived":false,"fork":false,"pushed_at":"2025-08-18T10:25:06.000Z","size":22469,"stargazers_count":724,"open_issues_count":142,"forks_count":152,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-10-21T20:57:48.167Z","etag":null,"topics":["html","kable","kableextra","knitr","latex","rmarkdown"],"latest_commit_sha":null,"homepage":"https://haozhu233.github.io/kableExtra/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haozhu233.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["haozhu233"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2015-11-05T20:01:50.000Z","updated_at":"2025-10-21T19:04:34.000Z","dependencies_parsed_at":"2024-04-11T17:46:16.261Z","dependency_job_id":"e6c4cd76-efba-4825-b158-e6471381dc45","html_url":"https://github.com/haozhu233/kableExtra","commit_stats":{"total_commits":623,"total_committers":51,"mean_commits":"12.215686274509803","dds":0.2118780096308186,"last_synced_commit":"292f60715959ea952ff25a8aedfd782793b15f7b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/haozhu233/kableExtra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozhu233%2FkableExtra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozhu233%2FkableExtra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozhu233%2FkableExtra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozhu233%2FkableExtra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haozhu233","download_url":"https://codeload.github.com/haozhu233/kableExtra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozhu233%2FkableExtra/sbom","scorecard":{"id":455104,"data":{"date":"2025-08-11","repo":{"name":"github.com/haozhu233/kableExtra","commit":"905e4fd06803a15c41e56d5c6c67cc3016a683be"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"14 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/R-CMD-check.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/haozhu233/kableExtra/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/haozhu233/kableExtra/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/haozhu233/kableExtra/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/haozhu233/kableExtra/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/haozhu233/kableExtra/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/haozhu233/kableExtra/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/haozhu233/kableExtra/R-CMD-check.yaml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.6.0 not signed: https://api.github.com/repos/haozhu233/kableExtra/releases/8244343","Warn: release artifact v0.5.2 not signed: https://api.github.com/repos/haozhu233/kableExtra/releases/7775854","Warn: release artifact v0.6.0 does not have provenance: https://api.github.com/repos/haozhu233/kableExtra/releases/8244343","Warn: release artifact v0.5.2 does not have provenance: https://api.github.com/repos/haozhu233/kableExtra/releases/7775854"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T09:21:28.798Z","repository_id":2761111,"created_at":"2025-08-19T09:21:28.798Z","updated_at":"2025-08-19T09:21:28.798Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280333501,"owners_count":26312845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","kable","kableextra","knitr","latex","rmarkdown"],"created_at":"2025-10-21T20:57:53.581Z","updated_at":"2025-10-21T20:57:54.768Z","avatar_url":"https://github.com/haozhu233.png","language":"R","funding_links":["https://github.com/sponsors/haozhu233"],"categories":[],"sub_categories":[],"readme":"# kableExtra \u003cimg src=\"https://haozhu233.github.io/kableExtra/kableExtra.svg\" align=\"right\" alt=\"logo\" width=\"120\" height = \"139\" style = \"border: none; float: right;\"\u003e\n\u003c!-- badges: start --\u003e\n[![CRAN_version](https://www.r-pkg.org/badges/version/kableExtra)](https://cran.r-project.org/package=kableExtra)\n[![CRAN_download](https://cranlogs.r-pkg.org/badges/kableExtra)](https://cran.r-project.org/package=kableExtra)\n[![CRAN_download_total](https://cranlogs.r-pkg.org/badges/grand-total/kableExtra)](https://cran.r-project.org/package=kableExtra)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1035917.svg)](https://doi.org/10.5281/zenodo.1035917)\n[![R-CMD-check](https://github.com/haozhu233/kableExtra/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/haozhu233/kableExtra/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n***\n\nWhen we are talking about table generators in R, [knitr](https://yihui.org/knitr/)'s `kable()` function is usually a popular choice because of its ultimate simplicity. Unlike those powerful table rendering engines such as [`xtable`](https://CRAN.R-project.org/package=xtable), the philosophy behind [`knitr::kable()`](https://rdrr.io/cran/knitr/man/kable.html) is to make it easy for programmers to use. Just as it claimed in its function description,\n\n\u003e This is a very simple table generator. It is simple by design. It is not intended to replace any other R packages for making tables. - Yihui\n\nHowever, the ultimate simplicity of `kable()` also brought troubles to some of us, especially for new R users, who may not have a lot of experience on generating tables in R. It is not rare to see people including experienced users asking questions like how to center/left-align a table on Stack Overflow. Also, for me personally, I found myself repeatedly parsing CSS into `kable()` for some very simple features like striped lines. For LaTeX, it's even worse since I'm almost Stack Overflow dependent for LaTeX... That's why this package `kableExtra` was created.\n\nI hope with `kableExtra`, you can\n\n- Use default base `kable()` (Or a good alternative for markdown tables is `pander::pander()`) for all simple tables\n- Use `kable()` with `kableExtra` to generate 90 % of complex/advanced/self-customized/beautiful tables in either HTML or LaTeX\n- Only have to mess with raw HTML/LaTeX in the last 10% cases where `kableExtra` cannot solve the problem\n\n***\n\nThis package can load required LaTeX package automatically in vanilla R Markdown. For customized R Markdown templates, it is recommended to load related LaTeX packages manually.\n\n***\n\n## Features\n### Pipable syntax\n`kableExtra` is NOT a table generating package. It is a package that can **\"add features\"** to a `kable()` output using a syntax that every useR loves - the [pipes `%\u003e%`](https://r4ds.had.co.nz/pipes.html). We see similar approaches to deal with plots in packages like `ggvis` and `plotly`. There is no reason why we cannot use it with tables.\n\n### Unified functions for both HTML and PDF\nMost functionalities in `kableExtra` can work in both HTML and PDF. In fact, as long as you specifies format in `kable()` (which can be set globally through option `knitr.table.format`), functions in this package will pick the right way to manipulate the table be themselves. As a result, if users want to left align the table, `kable(...) %\u003e% kable_styling(position = \"left\")` will work in both HTML and PDF. Recently, we also introduced a new `kbl()` function acting as an alternative to `kable` but provides better documentation and format detection. \n\n## Install\n```r\ninstall.packages(\"kableExtra\")\n\n# For dev version\ndevtools::install_github(\"haozhu233/kableExtra\")\n```\n\n## Basic Usage\n```r\nlibrary(kableExtra)\ndt \u003c- mtcars[1:5, 1:4]\n\n# HTML table\nkbl(dt, caption = \"Demo Table\") %\u003e%\n  kable_styling(bootstrap_options = \"striped\",\n                full_width = F) %\u003e%\n  add_header_above(c(\" \", \"Group 1\" = 2, \"Group 2[note]\" = 2)) %\u003e%\n  footnote(c(\"table footnote\"))\n\n# LaTeX Table\nkbl(dt, booktabs = T, caption = \"Demo Table\") %\u003e%\n  kable_styling(latex_options = c(\"striped\", \"hold_position\"),\n                full_width = F) %\u003e%\n  add_header_above(c(\" \", \"Group 1\" = 2, \"Group 2[note]\" = 2)) %\u003e%\n  footnote(c(\"table footnote\"))\n\n```\n### Results\n\u003cimg src=\"http://i.imgur.com/0e2b4P3.png\" height=\"200\" /\u003e\n\u003cimg src=\"http://i.imgur.com/q46hzORm.png\" height=\"200\" /\u003e\n\n## More Information\nFor more information, please check the package vignette.\n\n- [Create Awesome HTML Table with `knitr::kable()` and kableExtra](http://haozhu233.github.io/kableExtra/awesome_table_in_html.html) ([中文](http://haozhu233.github.io/kableExtra/awesome_table_in_html_cn.html))\n- [Create Awesome LaTeX Table with `knitr::kable()` and kableExtra](http://haozhu233.github.io/kableExtra/awesome_table_in_pdf.pdf)\n\n\n## Acknowledgement\nI would like to thank colleagues at Hebrew SeniorLife [Marcus Institute for Aging Research](https://www.marcusinstituteforaging.org/) and the [Boston Pepper Center](https://pepper.bwh.harvard.edu/) for their input. I also would like to appreciate the mentorship from Tom Travison ([@tgt75](https://twitter.com/tgt75)) and all the efforts from the open source community, which help this package keep getting better.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaozhu233%2Fkableextra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaozhu233%2Fkableextra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaozhu233%2Fkableextra/lists"}