{
  "_id": "6adf25a138036ff941f13e0a",
  "Package": "TernTables",
  "Type": "Package",
  "Title": "Automated Statistical Analysis and Table Generation for\nBiomedical Research",
  "Version": "1.7.2.9004",
  "Authors@R": "c(\nperson(\"Joshua D.\", \"Preston\",\nemail = \"joshua.preston@emory.edu\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-9834-3017\")),\nperson(\"Helen\", \"Abadiotakis\",\nrole = \"aut\",\ncomment = c(ORCID = \"0009-0002-8268-927X\")),\nperson(\"Ailin\", \"Tang\",\nrole = \"aut\",\ncomment = c(ORCID = \"0009-0007-8715-1678\")),\nperson(\"Clayton J.\", \"Rust\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0001-5929-0733\")),\nperson(\"John W.\", \"O'Neill\",\nrole = \"aut\",\ncomment = c(ORCID = \"0009-0001-8669-4925\")),\nperson(\"Michael E.\", \"Halkos\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0001-9191-7743\")),\nperson(\"Mani A.\", \"Daneshmand\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0002-0191-9911\")),\nperson(\"Joshua L.\", \"Chan\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0001-7220-561X\"))\n)",
  "Description": "Generates publication-ready summary tables for clinical\nresearch, supporting descriptive summaries and comparisons\nacross two or three groups. The package streamlines the\nanalytical workflow by detecting variable types and applying\nappropriate statistical tests (Welch t-test, Wilcoxon rank-sum,\nWelch ANOVA, Kruskal-Wallis, Chi-squared, or Fisher's exact\ntest). Results are formatted as 'tibble' objects and can be\nexported to 'Word' or 'Excel' using the 'officer', 'flextable',\nand 'writexl' packages. Optional pairwise post-hoc testing for\nthree-group comparisons (Games-Howell and Dunn's test) is\navailable via the 'rstatix' package. Example data are derived\nfrom the landmark adjuvant colon cancer trial described in\nMoertel et al. (1990) <doi:10.1056/NEJM199002083220602>.",
  "License": "MIT + file LICENSE",
  "URL": "https://cran.r-project.org/package=TernTables,\nhttps://github.com/jdpreston30/TernTables,\nhttps://tern-tables.com/",
  "BugReports": "https://github.com/jdpreston30/TernTables/issues",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libcairo2-dev cmake libfontconfig1-dev\nlibfreetype6-dev libfribidi-dev make libharfbuzz-dev libicu-dev\nlibjpeg-dev libpng-dev libtiff-dev libuv1-dev libwebp-dev\nlibxml2-dev libssl-dev zlib1g-dev",
  "Repository": "https://jdpreston30.r-universe.dev",
  "Date/Publication": "2026-07-28 18:54:25 UTC",
  "RemoteUrl": "https://github.com/jdpreston30/TernTables",
  "RemoteRef": "HEAD",
  "RemoteSha": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-26 09:59:58 UTC",
    "User": "root"
  },
  "Author": "Joshua D. Preston [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-9834-3017>),\nHelen Abadiotakis [aut] (ORCID:\n<https://orcid.org/0009-0002-8268-927X>),\nAilin Tang [aut] (ORCID: <https://orcid.org/0009-0007-8715-1678>),\nClayton J. Rust [aut] (ORCID: <https://orcid.org/0000-0001-5929-0733>),\nJohn W. O'Neill [aut] (ORCID: <https://orcid.org/0009-0001-8669-4925>),\nMichael E. Halkos [aut] (ORCID:\n<https://orcid.org/0000-0001-9191-7743>),\nMani A. Daneshmand [aut] (ORCID:\n<https://orcid.org/0000-0002-0191-9911>),\nJoshua L. Chan [aut] (ORCID: <https://orcid.org/0000-0001-7220-561X>)",
  "Maintainer": "Joshua D. Preston <joshua.preston@emory.edu>",
  "_user": "jdpreston30",
  "_type": "src",
  "_file": "TernTables_1.7.2.9004.tar.gz",
  "_fileid": "https://r2.ropensci.org/611a2e7e5a15bca3de0306e53cd108b052f5f2d0ceb9e7570aed8a49ca9ed70c",
  "_filesize": 2703806,
  "_sha256": "611a2e7e5a15bca3de0306e53cd108b052f5f2d0ceb9e7570aed8a49ca9ed70c",
  "_expires": "2027-02-03T10:04:15.000Z",
  "_created": "2026-10-26T09:59:58.000Z",
  "_published": "2026-10-26T10:04:17.855Z",
  "_upstream": "https://github.com/jdpreston30/TernTables",
  "_status": "success",
  "_maintainer": {
    "name": "Joshua D. Preston",
    "email": "joshua.preston@emory.edu",
    "login": "jdpreston30",
    "orcid": "0000-0001-9834-3017",
    "description": "MD/PhD student at Emory University SOM with computational skills in metabolomics, machine learning, and clinical research.",
    "uuid": 78032257
  },
  "_jobs": [
    {
      "job": 121508452304,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "12642041328"
    },
    {
      "job": 121508452627,
      "time": 182,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12641573456"
    },
    {
      "job": 121508452292,
      "time": 212,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12641692845"
    },
    {
      "job": 121508452363,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12641283322"
    },
    {
      "job": 121505056017,
      "time": 464,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12641812094"
    },
    {
      "job": 121508452276,
      "time": 177,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12640984134"
    },
    {
      "job": 121508452398,
      "time": 123,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "12642075405"
    },
    {
      "job": 121508452466,
      "time": 121,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12641991688"
    },
    {
      "job": 121508452290,
      "time": 150,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12641966834"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023",
  "_commit": {
    "id": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
    "author": "Josh Preston <jdpreston30@gmail.com>",
    "committer": "Josh Preston <jdpreston30@gmail.com>",
    "message": "v1.7.2.9004: Add tern_stats() and tern_estimates() tidy statistics accessors; ternG()/ternD() now always attach machine-readable per-variable and per-group frames as attributes, with a plain_tibble argument to return the per-variable frame directly; test name, statistic, df, p-value, and odds ratio/CI are captured as un-rounded numerics from the same objects that populate the display cells so the tidy frames cannot drift from the rendered table; fix force_continuous being silently dropped through the non-normal recursion in ternG(), which converted affected 0/1 variables to categorical Y/N under the skewness and Shapiro-Wilk gates; add John W. O'Neill to author list\n",
    "time": 1785264865
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "epitools",
      "role": "Imports"
    },
    {
      "package": "flextable",
      "version": ">= 0.9.0",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "multcompView",
      "role": "Imports"
    },
    {
      "package": "officer",
      "version": ">= 0.4.6",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rstatix",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Imports"
    },
    {
      "package": "writexl",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "jdpreston30",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-43",
      "n": 4
    },
    {
      "week": "2025-45",
      "n": 3
    },
    {
      "week": "2026-02",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 5
    },
    {
      "week": "2026-09",
      "n": 32
    },
    {
      "week": "2026-10",
      "n": 66
    },
    {
      "week": "2026-11",
      "n": 19
    },
    {
      "week": "2026-12",
      "n": 19
    },
    {
      "week": "2026-13",
      "n": 6
    },
    {
      "week": "2026-14",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 5
    },
    {
      "week": "2026-17",
      "n": 4
    },
    {
      "week": "2026-18",
      "n": 3
    },
    {
      "week": "2026-23",
      "n": 3
    },
    {
      "week": "2026-24",
      "n": 4
    },
    {
      "week": "2026-31",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.0",
      "date": "2025-11-06"
    },
    {
      "name": "v1.1.0",
      "date": "2026-01-08"
    },
    {
      "name": "v1.2.0",
      "date": "2026-02-16"
    },
    {
      "name": "v1.2.1",
      "date": "2026-02-26"
    },
    {
      "name": "v1.3.1",
      "date": "2026-02-27"
    },
    {
      "name": "v1.6.1",
      "date": "2026-03-03"
    },
    {
      "name": "v1.6.2",
      "date": "2026-03-04"
    },
    {
      "name": "v1.6.3",
      "date": "2026-03-04"
    },
    {
      "name": "v1.6.4",
      "date": "2026-03-23"
    },
    {
      "name": "v1.7.0",
      "date": "2026-03-27"
    },
    {
      "name": "v1.7.2",
      "date": "2026-06-04"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "jdpreston30",
      "count": 207,
      "uuid": 78032257
    },
    {
      "user": "atangx",
      "count": 26,
      "uuid": 223568622
    }
  ],
  "_userbio": {
    "uuid": 78032257,
    "type": "user",
    "name": "Joshua Preston",
    "followers": 2,
    "description": "MD/PhD student at Emory University SOM with computational skills in metabolomics, machine learning, and clinical research."
  },
  "_downloads": {
    "count": 307,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TernTables"
  },
  "_devurl": "https://github.com/jdpreston30/terntables",
  "_searchresults": 9,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/TernTables.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/jdpreston30/terntables",
  "_realowner": "jdpreston30",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.6.4",
      "date": "2026-03-26"
    },
    {
      "version": "1.7.2",
      "date": "2026-06-04"
    }
  ],
  "_exports": [
    "classify_normality",
    "tern_estimates",
    "tern_stats",
    "ternB",
    "ternD",
    "ternG",
    "ternP",
    "ternStyle",
    "val_format",
    "val_p_format",
    "word_export",
    "write_cleaning_doc",
    "write_methods_doc"
  ],
  "_datasets": [
    {
      "name": "tern_colon",
      "title": "Colon Cancer Recurrence Data (Example Dataset)",
      "object": "tern_colon",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "ID",
        "Age_Years",
        "Sex",
        "Colonic_Obstruction",
        "Bowel_Perforation",
        "Positive_Lymph_Nodes_n",
        "Over_4_Positive_Nodes",
        "Tumor_Adherence",
        "Tumor_Differentiation",
        "Extent_of_Local_Spread",
        "Recurrence",
        "Treatment_Arm"
      ],
      "rows": 929,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "classify_normality",
      "title": "Classify variables by normality and routing decision",
      "topics": [
        "classify_normality"
      ]
    },
    {
      "page": "print.ternP_result",
      "title": "Print method for ternP_result objects",
      "topics": [
        "print.ternP_result"
      ]
    },
    {
      "page": "tern_colon",
      "title": "Colon Cancer Recurrence Data (Example Dataset)",
      "topics": [
        "tern_colon"
      ]
    },
    {
      "page": "tern_estimates",
      "title": "Extract the tidy per-group summary estimates from a TernTables result",
      "topics": [
        "tern_estimates"
      ]
    },
    {
      "page": "tern_stats",
      "title": "Extract the tidy per-variable statistics from a TernTables result",
      "topics": [
        "tern_stats"
      ]
    },
    {
      "page": "ternB",
      "title": "Combine multiple ternD/ternG tables into a single Word document",
      "topics": [
        "ternB"
      ]
    },
    {
      "page": "ternD",
      "title": "Generate descriptive summary table (optionally normality-aware)",
      "topics": [
        "ternD"
      ]
    },
    {
      "page": "ternG",
      "title": "Generate grouped summary table with appropriate statistical tests",
      "topics": [
        "ternG"
      ]
    },
    {
      "page": "ternP",
      "title": "Preprocess a raw data frame for use with ternG or ternD",
      "topics": [
        "ternP"
      ]
    },
    {
      "page": "ternStyle",
      "title": "Export a custom tibble to Word with TernTables formatting",
      "topics": [
        "ternStyle"
      ]
    },
    {
      "page": "val_format",
      "title": "Format a mean +/- SD string",
      "topics": [
        "val_format"
      ]
    },
    {
      "page": "val_p_format",
      "title": "Format a P value for reporting",
      "topics": [
        "val_p_format"
      ]
    },
    {
      "page": "word_export",
      "title": "Export TernTables output to a formatted Word document",
      "topics": [
        "word_export"
      ]
    },
    {
      "page": "write_cleaning_doc",
      "title": "Write a cleaning summary document for ternP output",
      "topics": [
        "write_cleaning_doc"
      ]
    },
    {
      "page": "write_methods_doc",
      "title": "Write a methods section Word document for TernTables output",
      "topics": [
        "write_methods_doc"
      ]
    }
  ],
  "_readme": "https://github.com/jdpreston30/TernTables/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "askpass",
    "backports",
    "base64enc",
    "boot",
    "broom",
    "bslib",
    "cachem",
    "car",
    "carData",
    "cli",
    "colorspace",
    "corrplot",
    "cowplot",
    "cpp11",
    "data.table",
    "Deriv",
    "digest",
    "doBy",
    "dplyr",
    "epitools",
    "evaluate",
    "farver",
    "fastmap",
    "flextable",
    "fontawesome",
    "fontBitstreamVera",
    "fontLiberation",
    "fontquiver",
    "forecast",
    "Formula",
    "fracdiff",
    "fs",
    "gdtools",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "htmltools",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "memoise",
    "mgcv",
    "mime",
    "minqa",
    "modelr",
    "multcompView",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "officer",
    "openssl",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "purrr",
    "quantreg",
    "R6",
    "ragg",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "rmarkdown",
    "rstatix",
    "S7",
    "sass",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "sys",
    "systemfonts",
    "textshaping",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "tinytex",
    "urca",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "withr",
    "writexl",
    "xfun",
    "xml2",
    "yaml",
    "zip",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting Started with TernTables",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Example Dataset",
        "Preprocessing Raw Data (ternP)",
        "Descriptive Table (ternD)",
        "Two-Group Comparison (ternG — 2 levels)",
        "Three or More Groups (ternG — 3+ levels)",
        "BH FDR Correction (p_adjust)",
        "Row Percentages (percentage_compute)",
        "Suppressing P Values (show_p) and Showing Missingness (show_missing)",
        "Word Output Formatting",
        "Statistical Test Logic",
        "Auditing Normality Routing (classify_normality)",
        "Methods Document",
        "Custom Tables (ternStyle)",
        "Web Application",
        "References"
      ],
      "created": "2026-02-26 14:07:07",
      "modified": "2026-06-10 16:55:32",
      "commits": 30
    }
  ],
  "_score": 4.903089986991944,
  "_indexed": true,
  "_nocasepkg": "terntables",
  "_universes": [
    "jdpreston30"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7.2.9004",
      "date": "2026-10-26T10:02:39.000Z",
      "distro": "resolute",
      "commit": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
      "fileid": "https://r2.ropensci.org/70b786e271ad00f7612cad6d22202014eda26c048152582c3269764b18225d01",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.7.2.9004",
      "date": "2026-10-26T10:02:56.000Z",
      "distro": "resolute",
      "commit": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
      "fileid": "https://r2.ropensci.org/c74f137a56e0f86a518d662c895aca66c12c2e9657e1f6f88422e171b3e0c66b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7.2.9004",
      "date": "2026-10-26T10:02:43.000Z",
      "commit": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
      "fileid": "https://r2.ropensci.org/ccf48b59c849c9d9d823cc5560351d5879c988347366b326439b211e71bdd400",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.7.2.9004",
      "date": "2026-10-26T10:02:19.000Z",
      "commit": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
      "fileid": "https://r2.ropensci.org/f9e4cbe83490feaaa732f6ad98298043230414679ce24ab02b92e96df95c70c4",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.7.2.9004",
      "date": "2026-10-26T10:03:22.000Z",
      "commit": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
      "fileid": "https://r2.ropensci.org/ce7b9a792356c24dab12fda6c3eb35a8ef17ffa4b8a14ce0327d686c1ef652b3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7.2.9004",
      "date": "2026-10-26T10:01:26.000Z",
      "commit": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
      "fileid": "https://r2.ropensci.org/bbdd1351aae557b60d99fec42263929f4e3328e9fa69401ccb624b3c6a1b9e5f",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.7.2.9004",
      "date": "2026-10-26T10:01:31.000Z",
      "commit": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
      "fileid": "https://r2.ropensci.org/e055cd7c72253b73affac065caa49bc4c36e43f871c61167ae96b57442b0c810",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.7.2.9004",
      "date": "2026-10-26T10:02:08.000Z",
      "commit": "02f9e99f86dd1607d6735b7dc8a51d8aabea2ae8",
      "fileid": "https://r2.ropensci.org/fd2f3c8a467b124adbe3716cccd1141b986f9719f78f8290700ab11b4eb46989",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jdpreston30/actions/runs/40302917023"
    }
  ]
}