{"id":21428310,"url":"https://github.com/mlverse/tabulate","last_synced_at":"2025-07-13T17:34:30.481Z","repository":{"id":56934089,"uuid":"455863713","full_name":"mlverse/tabulate","owner":"mlverse","description":"Pretty Console Output for Tables","archived":false,"fork":false,"pushed_at":"2022-02-16T11:25:52.000Z","size":813,"stargazers_count":39,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-07T13:40:40.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mlverse.github.io/tabulate/","language":"C++","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/mlverse.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-05T12:28:11.000Z","updated_at":"2023-09-25T02:17:46.000Z","dependencies_parsed_at":"2022-08-21T06:50:34.228Z","dependency_job_id":null,"html_url":"https://github.com/mlverse/tabulate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mlverse/tabulate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Ftabulate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Ftabulate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Ftabulate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Ftabulate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlverse","download_url":"https://codeload.github.com/mlverse/tabulate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Ftabulate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265179227,"owners_count":23723428,"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","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":[],"created_at":"2024-11-22T22:12:39.436Z","updated_at":"2025-07-13T17:34:30.440Z","avatar_url":"https://github.com/mlverse.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput:\n  md_document:\n    variant: gfm\nalways_allow_html: true\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n# Turn on ANSI colors\noptions(cli.num_colors = 256L)\nasciicast::init_knitr_engine(\n  startup = quote({\n    library(tabulate)\n  }),\n  echo = TRUE,\n  echo_input = FALSE,\n  same_process = TRUE,\n  options = list(\n    asciicast_end_wait = 3\n  )\n)\n```\n\n# tabulate\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/mlverse/tabulate/workflows/R-CMD-check/badge.svg)](https://github.com/mlverse/tabulate/actions)\n[![CRAN status](https://www.r-pkg.org/badges/version/tabulate)](https://CRAN.R-project.org/package=tabulate)\n[![](https://cranlogs.r-pkg.org/badges/tabulate)](https://cran.r-project.org/package=tabulate)\n\u003c!-- badges: end --\u003e\n\nTabulate is a thin wrapper around the [tabulate C++ library](https://github.com/p-ranav/tabulate).\nIt allows users to pretty print tables in the console, with support for different\nfont styles, colors, borders and etc. It also supports multi-bytes characters and\nnesting tables.\n\n```{asciicast demo, echo = FALSE}\n#' cols: 108\n#' padding_x: 5\n#' padding_y: 5\ntabulate::tabulate_demo()\n```\n\n## Installation\n\ntabulate can be installed from CRAN with:\n\n```\ninstall.packages(\"tabulate\")\n```\n\nYou can install the development version of tabulate from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"mlverse/tabulate\")\n```\n\n## Example\n\nThe following example shows basic functionality of tabulate. Like formatting and\ncoloring the output. Note that color and font styles are only suppported in platforms\nthat support ANSI strings. For a colored version of this table see this [link](https://mlverse.github.io/tabulate/articles/unicode.html).\n\n```{asciicast table}\nlibrary(tabulate)\ndepartment \u003c- tabulate_table() %\u003e% \n  table_add_row(c(\"Research\", \"Engineering\"))\n\nemployees \u003c- tabulate_table() %\u003e% \n  table_add_row(\n    c(\"Emp. ID\", \"First Name\", \"Last Name\", \"Department / Business Unit\")) %\u003e% \n  table_add_row(c(\"101\", \"Donald\", \"Patrick\", \"Finance\")) %\u003e% \n  table_add_row(\n    c(\"102\", \"Rachel\", \"Williams\", \n      \"Marketing and Operational\\nLogistics Planning\")) %\u003e% \n  table_add_row(c(\"103\", \"Ian\", \"Jacob\", department))\n\nemployees[,1] %\u003e% \n  format_font_style(\"bold\") %\u003e% \n  format_font_color(\"red\") %\u003e% \n  format_font_align(\"right\")\n\nemployees[,4] %\u003e% format_font_align(\"center\") \nprint(employees)\n```\n\nSee the [example gallery](https://mlverse.github.io/tabulate/articles/) for more.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlverse%2Ftabulate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlverse%2Ftabulate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlverse%2Ftabulate/lists"}