{"id":14068310,"url":"https://github.com/zeehio/condformat","last_synced_at":"2025-09-03T01:32:13.960Z","repository":{"id":32401638,"uuid":"35978307","full_name":"zeehio/condformat","owner":"zeehio","description":"R package to apply conditional formatting rules to a data.frame ","archived":false,"fork":false,"pushed_at":"2023-10-10T04:15:16.000Z","size":1311,"stargazers_count":25,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-03T22:36:41.934Z","etag":null,"topics":["formatting","html","latex","r-package","table","visualisation"],"latest_commit_sha":null,"homepage":null,"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/zeehio.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,"governance":null}},"created_at":"2015-05-20T22:49:05.000Z","updated_at":"2024-05-25T08:09:52.000Z","dependencies_parsed_at":"2023-01-14T21:06:55.951Z","dependency_job_id":null,"html_url":"https://github.com/zeehio/condformat","commit_stats":{"total_commits":303,"total_committers":3,"mean_commits":101.0,"dds":"0.14191419141914197","last_synced_commit":"d294a390f7789913261781bfe77f265c001da425"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/zeehio/condformat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeehio%2Fcondformat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeehio%2Fcondformat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeehio%2Fcondformat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeehio%2Fcondformat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeehio","download_url":"https://codeload.github.com/zeehio/condformat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeehio%2Fcondformat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273377047,"owners_count":25094525,"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-09-02T02:00:09.530Z","response_time":77,"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":["formatting","html","latex","r-package","table","visualisation"],"created_at":"2024-08-13T07:06:05.420Z","updated_at":"2025-09-03T01:32:13.635Z","avatar_url":"https://github.com/zeehio.png","language":"R","funding_links":[],"categories":["UI Components","R"],"sub_categories":["Table"],"readme":"---\ntitle: \"Introduction to condformat\"\nauthor: \"Sergio Oller\"\ndate: \"`r Sys.Date()`\"\noutput: rmarkdown::github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\"\n)\n```\n\ncondformat renders a data frame in which\ncells in columns are formatted according to several rules or criteria.\n\n  \u003c!-- badges: start --\u003e\n  \n  [![CRAN status](https://www.r-pkg.org/badges/version/condformat)](https://CRAN.R-project.org/package=condformat)\n  [![Downloads](https://cranlogs.r-pkg.org/badges/condformat)](https://cran.r-project.org/package=condformat)\n\n  [![Documentation](https://img.shields.io/badge/documentation-pkgdown-informational)](https://zeehio.github.io/condformat/)\n\n  [![R build status](https://github.com/zeehio/condformat/workflows/R-CMD-check/badge.svg)](https://github.com/zeehio/condformat/actions)\n  [![codecov.io](https://codecov.io/github/zeehio/condformat/coverage.svg?branch=main)](https://app.codecov.io/github/zeehio/condformat)\n  \n  \u003c!-- badges: end --\u003e\n\n## Browse source code\n\nCheckout the code and browse it at\n[https://github.com/zeehio/condformat](https://github.com/zeehio/condformat).\n\n## How to install condformat:\n\n### Dependencies\n\nIf you want to use the PDF output you will need the `xcolor` LaTeX package.\nEither use the full texlive distribution, or install `latex-xcolor` on Debian\nand derivatives.\n\n### Package installation\n\n* From CRAN: \n\n    ```\n    install.packages(\"condformat\")\n    ```\n\n* To install the latest development version: \n\n    ```\n    remotes::install_github(\"zeehio/condformat\")\n    ```\n\n## Example\n\n```{r fig-example}\ndata(iris)\nlibrary(condformat)\ncondformat(iris[c(1:5,70:75, 120:125),]) %\u003e%\n  rule_fill_discrete(Species) %\u003e%\n  rule_fill_discrete(c(Sepal.Width, Sepal.Length),\n                     expression = Sepal.Width \u003e Sepal.Length - 2.25,\n                     colours = c(\"TRUE\" = \"#7D00FF\")) %\u003e%\n  rule_fill_gradient2(Petal.Length) %\u003e%\n  rule_text_bold(c(Sepal.Length, Species), Species == \"versicolor\") %\u003e%\n  rule_text_color(Sepal.Length,\n                  expression = ifelse(Species == \"setosa\", \"yellow\", \"\")) %\u003e%\n  rule_fill_bar(Petal.Width, limits = c(0, NA)) %\u003e%\n  theme_grob(rows = NULL) %\u003e%\n  condformat2grob()\n```\n\nThis example covers most of the condformat rules.\n\n## Rules and output engine support\n\n\n| Rule                      | HTML | LaTeX | gtable | Excel |\n| ------------------------ |:-----:|:-----:|:------:|:-----:|\n| `rule_fill_discrete`     |   X   |   X   |   X    |   X   |\n| `rule_fill_gradient`     |   X   |   X   |   X    |   X   |\n| `rule_fill_gradient2`    |   X   |   X   |   X    |   X   |\n| `rule_text_color`        |   X   |   X   |   X    |   X   |\n| `rule_text_bold`         |   X   |   X   |   X    |   X   |\n| `rule_fill_bar`          |   X   |       |   X    |       |\n| `rule_css`               |   X   |       |        |       |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeehio%2Fcondformat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeehio%2Fcondformat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeehio%2Fcondformat/lists"}