{"id":15118709,"url":"https://github.com/insightsengineering/tern","last_synced_at":"2025-10-09T02:08:58.684Z","repository":{"id":37407718,"uuid":"383270824","full_name":"insightsengineering/tern","owner":"insightsengineering","description":"Table, Listings, and Graphs (TLG) library for common outputs used in clinical trials","archived":false,"fork":false,"pushed_at":"2025-09-22T17:36:01.000Z","size":309163,"stargazers_count":89,"open_issues_count":66,"forks_count":27,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-10-09T02:03:03.860Z","etag":null,"topics":["clinical-trials","graphs","listings","nest","outputs","r","tables"],"latest_commit_sha":null,"homepage":"https://insightsengineering.github.io/tern/","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/insightsengineering.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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},"funding":{"custom":["https://pharmaverse.org"]}},"created_at":"2021-07-05T21:43:32.000Z","updated_at":"2025-10-06T09:36:14.000Z","dependencies_parsed_at":"2024-01-25T13:27:52.189Z","dependency_job_id":"4f1b5e79-7823-4968-9fe7-0791facf4976","html_url":"https://github.com/insightsengineering/tern","commit_stats":null,"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/insightsengineering/tern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Ftern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Ftern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Ftern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Ftern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insightsengineering","download_url":"https://codeload.github.com/insightsengineering/tern/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Ftern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000774,"owners_count":26082906,"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-09T02:00:07.460Z","response_time":59,"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":["clinical-trials","graphs","listings","nest","outputs","r","tables"],"created_at":"2024-09-26T01:53:36.915Z","updated_at":"2025-10-09T02:08:58.654Z","avatar_url":"https://github.com/insightsengineering.png","language":"R","funding_links":["https://pharmaverse.org"],"categories":["R","Ranked by starred repositories","Regulatory \u0026 Submission Tools"],"sub_categories":["Tables, Listings \u0026 Figures (TLF)"],"readme":"# tern \u003ca href='https://github.com/insightsengineering/tern'\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"200\" width=\"200\"/\u003e\u003c/a\u003e\n\n\u003c!-- start badges --\u003e\n[![Check 🛠](https://github.com/insightsengineering/tern/actions/workflows/check.yaml/badge.svg)](https://insightsengineering.github.io/tern/main/unit-test-report/)\n[![Docs 📚](https://github.com/insightsengineering/tern/actions/workflows/docs.yaml/badge.svg)](https://insightsengineering.github.io/tern/)\n[![Code Coverage 📔](https://raw.githubusercontent.com/insightsengineering/tern/_xml_coverage_reports/data/main/badge.svg)](https://insightsengineering.github.io/tern/main/coverage-report/)\n\n![GitHub forks](https://img.shields.io/github/forks/insightsengineering/tern?style=social)\n![GitHub repo stars](https://img.shields.io/github/stars/insightsengineering/tern?style=social)\n\n![GitHub commit activity](https://img.shields.io/github/commit-activity/m/insightsengineering/tern)\n![GitHub contributors](https://img.shields.io/github/contributors/insightsengineering/tern)\n![GitHub last commit](https://img.shields.io/github/last-commit/insightsengineering/tern)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/insightsengineering/tern)\n![GitHub repo size](https://img.shields.io/github/repo-size/insightsengineering/tern)\n![GitHub language count](https://img.shields.io/github/languages/count/insightsengineering/tern)\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![Current Version](https://img.shields.io/github/r-package/v/insightsengineering/tern/main?color=purple\\\u0026label=package%20version)](https://github.com/insightsengineering/tern/tree/main)\n[![Open Issues](https://img.shields.io/github/issues-raw/insightsengineering/tern?color=red\\\u0026label=open%20issues)](https://github.com/insightsengineering/tern/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)\n\u003c!-- end badges --\u003e\n\nThe `tern` R package contains analysis functions to create tables and graphs used for clinical trial reporting.\n\nThe package provides a large range of functionality, such as:\n\n\u003c!-- markdownlint-disable MD007 MD030 --\u003e\n\nData visualizations:\n\n-   Line plots ([`g_lineplot`](https://insightsengineering.github.io/tern/latest-tag/reference/g_lineplot.html))\n-   Kaplan-Meier plots ([`g_km`](https://insightsengineering.github.io/tern/latest-tag/reference/g_km.html))\n-   Forest plots ([`g_forest`](https://insightsengineering.github.io/tern/latest-tag/reference/g_forest.html))\n-   STEP graphs ([`g_step`](https://insightsengineering.github.io/tern/latest-tag/reference/g_step.html))\n-   Individual patient plots ([`g_ipp`](https://insightsengineering.github.io/tern/latest-tag/reference/g_ipp.html))\n-   Waterfall plots ([`g_waterfall`](https://insightsengineering.github.io/tern/latest-tag/reference/g_waterfall.html))\n-   Bland-Altman plots ([`g_bland_altman`](https://insightsengineering.github.io/tern/latest-tag/reference/g_bland_altman.html))\n\nStatistical model fit summaries:\n\n-   Logistic regression ([`summarize_logistic`](https://insightsengineering.github.io/tern/latest-tag/reference/summarize_logistic.html))\n-   Cox regression ([`summarize_coxreg`](https://insightsengineering.github.io/tern/latest-tag/reference/cox_regression.html))\n\nAnalysis tables:\n\n-   See a list of all available analyze functions [here](https://insightsengineering.github.io/tern/latest-tag/reference/analyze_functions.html)\n-   See a list of all available summarize functions [here](https://insightsengineering.github.io/tern/latest-tag/reference/summarize_functions.html)\n-   See a list of all available column-wise analysis functions [here](https://insightsengineering.github.io/tern/latest-tag/reference/analyze_colvars_functions.html)\n\n\u003c!-- markdownlint-enable MD007 MD030 --\u003e\n\nMany of these outputs are available to be added into [`teal`](https://insightsengineering.github.io/teal/) shiny applications for interactive exploration of data. These `teal` modules are available in the [`teal.modules.clinical`](https://insightsengineering.github.io/teal.modules.clinical/) package.\n\nSee the [TLG Catalog](https://insightsengineering.github.io/tlg-catalog/) for an extensive catalog of example clinical trial tables, listings, and graphs created using `tern` functionality.\n\n## Installation\n\n`tern` is available on CRAN and you can install the latest released version with:\n\n```r\ninstall.packages(\"tern\")\n```\n\nor you can install the latest development version directly from GitHub by running the following:\n\n```r\n# install.packages(\"pak\")\npak::pak(\"insightsengineering/tern\")\n```\n\n## Usage\n\nTo understand how to use this package, please refer to the [Introduction to `tern`](https://insightsengineering.github.io/tern/latest-tag/articles/tern.html) article, which provides multiple examples of code implementation.\n\nSee package vignettes `browseVignettes(package = \"tern\")` for usage of this package.\n\n## Related\n\n- [`rtables`](https://insightsengineering.github.io/rtables/) - table engine used\n- [`tlg-catalog`](https://insightsengineering.github.io/tlg-catalog/) - website showcasing many examples of clinical trial tables, listings, and graphs\n- [`teal.modules.clinical`](https://insightsengineering.github.io/teal.modules.clinical/) - `teal` modules for interactive data analysis\n\n## Acknowledgment\n\nThis package is the result of the joint efforts by many developers and stakeholders. We would like to thank everyone who has contributed so far!\n\n## Stargazers and Forkers\n\n### Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/insightsengineering/tern.svg)](https://starchart.cc/insightsengineering/tern)\n\n### Stargazers\n\n[![Stargazers repo roster for tern](https://reporoster.com/stars/insightsengineering/tern)](https://github.com/insightsengineering/tern/stargazers)\n\n[![Forkers repo roster for tern](https://reporoster.com/forks/insightsengineering/tern)](https://github.com/insightsengineering/tern/network/members)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightsengineering%2Ftern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsightsengineering%2Ftern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightsengineering%2Ftern/lists"}