{"id":13733869,"url":"https://github.com/davidgohel/flextable","last_synced_at":"2025-10-21T20:57:39.865Z","repository":{"id":9441066,"uuid":"62127938","full_name":"davidgohel/flextable","owner":"davidgohel","description":"table farming","archived":false,"fork":false,"pushed_at":"2025-10-06T13:20:02.000Z","size":53825,"stargazers_count":604,"open_issues_count":29,"forks_count":89,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-10-21T20:57:28.368Z","etag":null,"topics":["cran","docx","html5","ms-office-documents","r","rmarkdown","rstats","table"],"latest_commit_sha":null,"homepage":"https://ardata-fr.github.io/flextable-book/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidgohel.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-06-28T09:25:11.000Z","updated_at":"2025-10-11T23:12:31.000Z","dependencies_parsed_at":"2023-02-16T01:31:23.176Z","dependency_job_id":"9429ce09-e2e4-464a-a07d-e0f28cb14d1d","html_url":"https://github.com/davidgohel/flextable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/davidgohel/flextable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fflextable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fflextable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fflextable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fflextable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidgohel","download_url":"https://codeload.github.com/davidgohel/flextable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fflextable/sbom","scorecard":{"id":326693,"data":{"date":"2025-08-11","repo":{"name":"github.com/davidgohel/flextable","commit":"7e134a99380a8c792de82e5db3176dee319cfe66"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"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":"Maintained","score":10,"reason":"14 commit(s) and 9 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":"Code-Review","score":0,"reason":"Found 2/30 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":"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","Warn: no topLevel permission defined: .github/workflows/lock.yaml:1","Warn: no topLevel permission defined: .github/workflows/pkgdown.yaml:1","Info: topLevel permissions set to 'read-all': .github/workflows/test-coverage.yaml:10","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":"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":"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:36: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/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/davidgohel/flextable/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/davidgohel/flextable/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lock.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/lock.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/pkgdown.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/pkgdown.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/pkgdown.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/pkgdown.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/test-coverage.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/test-coverage.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/test-coverage.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/test-coverage.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/flextable/test-coverage.yaml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  12 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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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 2 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-18T02:38:06.149Z","repository_id":9441066,"created_at":"2025-08-18T02:38:06.149Z","updated_at":"2025-08-18T02:38:06.149Z"},"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":["cran","docx","html5","ms-office-documents","r","rmarkdown","rstats","table"],"created_at":"2024-08-03T03:00:50.401Z","updated_at":"2025-10-21T20:57:39.861Z","avatar_url":"https://github.com/davidgohel.png","language":"R","funding_links":[],"categories":["R","Tools","UI Components"],"sub_categories":["Integrations","Table"],"readme":"---\ntitle: \"flextable R package\"\noutput:\n  github_document\n---\n\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n[![R build status](https://github.com/davidgohel/flextable/workflows/R-CMD-check/badge.svg)](https://github.com/davidgohel/flextable/actions)\n[![version](https://www.r-pkg.org/badges/version/flextable)](https://CRAN.R-project.org/package=flextable)\n[![test coverage](https://codecov.io/gh/davidgohel/flextable/branch/master/graph/badge.svg)](https://app.codecov.io/gh/davidgohel/flextable)\n![Active](https://www.repostatus.org/badges/latest/active.svg)\n\n```{r include=FALSE}\nknitr::opts_chunk$set(\n  message = FALSE,\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  dev = \"ragg_png\",\n  dpi = 200\n)\nlibrary(gdtools)\nregister_liberationsans()\n```\n\n\n\nThe flextable package provides a framework for easily create tables for \nreporting and publications. Tables can be easily formatted with \na set of verbs such as `bold()`, `color()`, they can receive a \nheader of more than one line, cells can be merged or contain \nan image. The package make it possible to build any table for \npublication from a `data.frame` and provides sugar function \n`as_flextable()` to convert several R objects to a flextable,\nsuch as an object return from `table()` or a model.\n\nTables can be embedded within HTML, PDF, Word and PowerPoint documents \nfrom R Markdown documents and within RTF or Microsoft Word or PowerPoint \ndocuments with package officer. Tables can also be rendered as R plots \nor graphic files (png).\n\n\u003cimg src=\"man/figures/fig_formats.png\" width=\"170px\" alt=\"flextable formats\" align=\"center\" /\u003e \n\n```{r eval=FALSE}\nflextable(mtcars) %\u003e% \n  theme_vanilla() %\u003e% \n  save_as_docx(path = \"mytable.docx\")\n```\n\n\nA `flextable` object is a data.frame representation. An API is available to let\nR users create tables for reporting and control their formatting properties and\ntheir layout. The package provides functions that give control over:\n\n- header, body and footer content \n- text, paragraphs, cells and border formatting of any element\n- displayed values\n\nThe package also offers a set of high-level functions that allow tabular\nreporting of statistical models and the creation of complex cross tabulations.\n\n## Examples\n\n\n```{r 'mtcars-dataset', message=FALSE, warning=FALSE}\nlibrary(flextable)\nset_flextable_defaults(\n  font.family = \"Arial\", font.size = 10, \n  border.color = \"gray\", big.mark = \"\")\n\nft \u003c- flextable(head(mtcars)) |\u003e \n  bold(part = \"header\") \nft\n\nft |\u003e \n  highlight(i = ~ mpg \u003c 22, j = \"disp\", color = \"#ffe842\") |\u003e \n  bg(j = c(\"hp\", \"drat\", \"wt\"), \n     bg = scales::col_quantile(palette = c(\"wheat\", \"red\"), domain =NULL)) |\u003e \n  add_footer_lines(\"The 'mtcars' dataset\")\n```\n\n\n```{r 'diamonds-dataset'}\nggplot2::diamonds[, c(\"cut\", \"carat\", \"price\", \"clarity\", \"table\")] |\u003e \n  summarizor(by = c(\"cut\")) |\u003e \n  as_flextable(spread_first_col = TRUE)\n```\n\n## Installation\n\n\n```{r eval = FALSE}\ninstall.packages(\"flextable\")\n```\n\nYou can get the development version from GitHub:\n\n```{r eval = FALSE}\ndevtools::install_github(\"davidgohel/flextable\")\n```\n\n\n## Resources\n\n- User guide: https://ardata-fr.github.io/flextable-book/ \n- Manuals: https://davidgohel.github.io/flextable/reference/index.html\n- Gallery of examples: https://ardata.fr/en/flextable-gallery/\n\n\n## Bug reports\n\nWhen you file a [bug report](https://github.com/davidgohel/flextable/issues),\nplease spend some time making it easy for us to reproduce. If you \ntake the time to make the bug report consistent, it will be easier to fix.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgohel%2Fflextable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidgohel%2Fflextable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgohel%2Fflextable/lists"}