{
  "_id": "6b004d05304827bb829a255a",
  "Package": "tsg",
  "Type": "Package",
  "Title": "Generate Publication-Ready Statistical Tables",
  "Version": "0.2.0",
  "Description": "A table and summary generator: a collection of functions\nfor generating frequency tables and cross-tabulations of\ncategorical variables. The resulting tables can be exported to\nvarious formats (Excel, PDF, HTML, etc.) with extensive\nformatting and layout customization options.",
  "Authors@R": "c(\nperson(\n\"Bhas\",\n\"Abdulsamad\",\nemail = \"aeabdulsamad@gmail.com\",\ncomment = c(ORCID = \"0009-0002-5891-8124\"),\nrole = c(\"aut\", \"cre\", \"cph\")\n)\n)",
  "Author": "Bhas Abdulsamad [aut, cre, cph] (ORCID:\n<https://orcid.org/0009-0002-5891-8124>)",
  "Maintainer": "Bhas Abdulsamad <aeabdulsamad@gmail.com>",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "URL": "https://yng-me.github.io/tsg/, https://github.com/yng-me/tsg",
  "BugReports": "https://github.com/yng-me/tsg/issues",
  "Config/roxygen2/version": "8.1.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-20 13:31:30 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-20 07:40:02 UTC",
  "RemoteUrl": "https://github.com/cran/tsg",
  "RemoteRef": "HEAD",
  "RemoteSha": "420e9a0d76433ac752774c585a2eb82eea2ad5cc",
  "_user": "cran",
  "_type": "src",
  "_file": "tsg_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/5acac8c42233850955246f3ea8ec950e7b0df4d54ca56b440680719fc2ca7257",
  "_filesize": 2715267,
  "_sha256": "5acac8c42233850955246f3ea8ec950e7b0df4d54ca56b440680719fc2ca7257",
  "_expires": "2027-02-28T13:37:07.000Z",
  "_created": "2026-11-20T13:31:30.000Z",
  "_published": "2026-11-20T13:37:09.342Z",
  "_upstream": "https://github.com/cran/tsg",
  "_status": "success",
  "_maintainer": {
    "name": "Bhas Abdulsamad",
    "email": "aeabdulsamad@gmail.com",
    "login": "yng-me",
    "description": "",
    "uuid": 11029004,
    "orcid": "0009-0002-5891-8124"
  },
  "_jobs": [
    {
      "job": 136318334095,
      "time": 212,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14632926614"
    },
    {
      "job": 136318334015,
      "time": 229,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14633480356"
    },
    {
      "job": 136316133508,
      "time": 261,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14633115630"
    },
    {
      "job": 136318334150,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14631929011"
    },
    {
      "job": 136318334029,
      "time": 275,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14632513145"
    },
    {
      "job": 136318334057,
      "time": 296,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14632572966"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/44744444399",
  "_commit": {
    "id": "420e9a0d76433ac752774c585a2eb82eea2ad5cc",
    "author": "Bhas Abdulsamad <aeabdulsamad@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.2.0\n",
    "time": 1795160402
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "haven",
      "role": "Imports"
    },
    {
      "package": "openxlsx",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "yaml",
      "version": ">= 2.3.10",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "version": ">= 1.4.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.0.2",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "cli",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "webshot2",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "DBI",
      "role": "Suggests"
    },
    {
      "package": "dbplyr",
      "role": "Suggests"
    },
    {
      "package": "RSQLite",
      "role": "Suggests"
    },
    {
      "package": "googledrive",
      "role": "Suggests"
    },
    {
      "package": "gargle",
      "role": "Suggests"
    },
    {
      "package": "gt",
      "role": "Suggests"
    },
    {
      "package": "officer",
      "role": "Suggests"
    },
    {
      "package": "flextable",
      "role": "Suggests"
    },
    {
      "package": "qpdf",
      "role": "Suggests"
    },
    {
      "package": "chromote",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 1
    },
    {
      "week": "2026-19",
      "n": 1
    },
    {
      "week": "2026-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.1",
      "date": "2026-02-12"
    },
    {
      "name": "0.1.2",
      "date": "2026-02-22"
    },
    {
      "name": "0.1.3",
      "date": "2026-02-28"
    },
    {
      "name": "0.1.4",
      "date": "2026-05-05"
    },
    {
      "name": "0.2.0",
      "date": "2026-11-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "yng-me",
      "count": 6,
      "uuid": 11029004
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 638,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tsg"
  },
  "_devurl": "https://github.com/yng-me/tsg",
  "_pkgdown": "https://yng-me.github.io/tsg/",
  "_rbuild": "4.6.2",
  "_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/tsg.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/yng-me/tsg",
  "_realowner": "yng-me",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-11-09"
    },
    {
      "version": "0.1.1",
      "date": "2026-02-16"
    },
    {
      "version": "0.1.2",
      "date": "2026-02-22"
    },
    {
      "version": "0.1.3",
      "date": "2026-02-28"
    },
    {
      "version": "0.1.4",
      "date": "2026-05-05"
    },
    {
      "version": "0.2.0",
      "date": "2026-11-20"
    }
  ],
  "_authors": [
    {
      "name": "Bhas Abdulsamad",
      "email": "aeabdulsamad@gmail.com",
      "orcid": "0009-0002-5891-8124",
      "role": [
        "aut",
        "cre",
        "cph"
      ]
    }
  ],
  "_exports": [
    "add_column_total",
    "add_facade",
    "add_facade_alt",
    "add_footnote",
    "add_row_total",
    "add_source_note",
    "add_table_subtitle",
    "add_table_title",
    "as_gt",
    "collapse_list",
    "convert_factor",
    "generate_crosstab",
    "generate_frequency",
    "generate_output",
    "generate_summary",
    "generate_template",
    "get_tsg_facade",
    "remove_label",
    "remove_labels",
    "rename_label",
    "write_docx",
    "write_gsheet",
    "write_html",
    "write_pdf",
    "write_xlsx"
  ],
  "_datasets": [
    {
      "name": "person_record",
      "title": "Sample dataset of persons",
      "object": "person_record",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "person_id",
        "age",
        "sex",
        "marital_status",
        "employed",
        "seeing",
        "hearing",
        "walking",
        "remembering",
        "self_caring",
        "communicating"
      ],
      "rows": 2918,
      "table": true,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "add_column_total",
      "title": "Add a column total",
      "topics": [
        "add_column_total"
      ]
    },
    {
      "page": "add_facade",
      "title": "Add a facade to a tsg table",
      "topics": [
        "add_facade"
      ]
    },
    {
      "page": "add_facade_alt",
      "title": "Add a facade to a tsg table (alternative way)",
      "topics": [
        "add_facade_alt"
      ]
    },
    {
      "page": "add_footnote",
      "title": "Add a footnote attribute to a table",
      "topics": [
        "add_footnote"
      ]
    },
    {
      "page": "add_row_total",
      "title": "Add a row total",
      "topics": [
        "add_row_total"
      ]
    },
    {
      "page": "add_source_note",
      "title": "Add a source note attribute to a table",
      "topics": [
        "add_source_note"
      ]
    },
    {
      "page": "add_table_subtitle",
      "title": "Add a subtitle attribute to a table",
      "topics": [
        "add_table_subtitle"
      ]
    },
    {
      "page": "add_table_title",
      "title": "Add a title attribute to a table",
      "topics": [
        "add_table_title"
      ]
    },
    {
      "page": "as_gt",
      "title": "Convert a tsg table to a gt table",
      "topics": [
        "as_gt"
      ]
    },
    {
      "page": "collapse_list",
      "title": "Collapse a list of data frames or tibbles into a single data frame",
      "topics": [
        "collapse_list"
      ]
    },
    {
      "page": "convert_factor",
      "title": "Convert labelled factors to regular factors",
      "topics": [
        "convert_factor"
      ]
    },
    {
      "page": "generate_crosstab",
      "title": "Generate cross-tabulation",
      "topics": [
        "generate_crosstab"
      ]
    },
    {
      "page": "generate_frequency",
      "title": "Generate frequency table",
      "topics": [
        "generate_frequency"
      ]
    },
    {
      "page": "generate_output",
      "title": "Generate output in specified format (e.g., xlsx, html, pdf, word)",
      "topics": [
        "generate_output"
      ]
    },
    {
      "page": "generate_summary",
      "title": "Generate a summary table of numeric variables",
      "topics": [
        "generate_summary"
      ]
    },
    {
      "page": "generate_template",
      "title": "Generate a template",
      "topics": [
        "generate_template"
      ]
    },
    {
      "page": "get_tsg_facade",
      "title": "Get a facade from the package or a file",
      "topics": [
        "get_tsg_facade"
      ]
    },
    {
      "page": "person_record",
      "title": "Sample dataset of persons",
      "topics": [
        "person_record"
      ]
    },
    {
      "page": "remove_label",
      "title": "Remove data labels",
      "topics": [
        "remove_label"
      ]
    },
    {
      "page": "remove_labels",
      "title": "Remove all labels",
      "topics": [
        "remove_labels"
      ]
    },
    {
      "page": "rename_label",
      "title": "Rename data labels",
      "topics": [
        "rename_label"
      ]
    },
    {
      "page": "write_docx",
      "title": "Write a tsg table (or list of tables) to a Word (.docx) file",
      "topics": [
        "write_docx"
      ]
    },
    {
      "page": "write_gsheet",
      "title": "Write data to a Google Sheet",
      "topics": [
        "write_gsheet"
      ]
    },
    {
      "page": "write_html",
      "title": "Write a tsg table (or list of tables) to an HTML file",
      "topics": [
        "write_html"
      ]
    },
    {
      "page": "write_pdf",
      "title": "Write a tsg table (or list of tables) to a PDF file",
      "topics": [
        "write_pdf"
      ]
    },
    {
      "page": "write_xlsx",
      "title": "Write Data to Excel with Titles, Notes, and Styling",
      "topics": [
        "write_xlsx"
      ]
    }
  ],
  "_readme": "https://github.com/cran/tsg/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "dplyr",
    "forcats",
    "fs",
    "generics",
    "glue",
    "haven",
    "hms",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "openxlsx",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "Rcpp",
    "readr",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "yaml",
    "zip"
  ],
  "_vignettes": [
    {
      "source": "facade.Rmd",
      "filename": "facade.html",
      "title": "Customizing How Your Tables Look",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Using a built-in style",
        "Tweaking a few settings with add_facade()",
        "Common tweaks",
        "Borders",
        "Applying the same tweaks across formats",
        "Making your own style file",
        "Step 1: generate the template",
        "Step 2: edit the file",
        "Step 3: use your style",
        "Programmatic style overrides",
        "Style property reference",
        "Table-level settings (full list)",
        "Colour values",
        "Section names"
      ],
      "created": "2026-05-05 14:30:46",
      "modified": "2026-11-20 07:40:02",
      "commits": 2
    },
    {
      "source": "tsg.Rmd",
      "filename": "tsg.html",
      "title": "Getting Started with tsg",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The sample dataset",
        "Count values in a column",
        "Count several columns at once",
        "Show only the top categories",
        "Control how rows are sorted",
        "Include or exclude missing values",
        "Combine similar columns into one table",
        "Other options",
        "Compare two columns in a grid (cross-tabulation)",
        "Percentages by column instead of by row",
        "Cross-tabulate against several columns at once",
        "Break down results by a group",
        "Summarise numeric columns",
        "Work with data in a database",
        "Save your table to a file",
        "Add a title and notes",
        "Change the look of your table",
        "Save to other formats"
      ],
      "created": "2025-11-09 16:30:02",
      "modified": "2026-11-20 07:40:02",
      "commits": 4
    },
    {
      "source": "advanced.Rmd",
      "filename": "advanced.html",
      "title": "Grouped Tables and Side-by-Side Comparisons",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Get a separate table for each group",
        "Add a grand total to grouped tables",
        "Flat table with total rows inserted",
        "Separate tables with a total entry per level",
        "Change the total label",
        "Compare several Yes/No indicators side by side",
        "Basic usage",
        "Count a different response level",
        "Combining with grouping",
        "Full comparison table with hierarchical columns",
        "Basic stacked table",
        "Custom label separator",
        "Three or more column variables",
        "Export many tables to one Excel file",
        "Basic multi-sheet export",
        "Add an index sheet",
        "Save each table to its own file",
        "End-to-end example",
        "Controlling where footnotes appear",
        "Left and right placement",
        "Linking a footnote to a column header (HTML / PDF)",
        "Chaining multiple footnotes",
        "Tips"
      ],
      "created": "2026-05-05 14:30:46",
      "modified": "2026-11-20 07:40:02",
      "commits": 2
    },
    {
      "source": "output-formats.Rmd",
      "filename": "output-formats.html",
      "title": "Saving and Sharing Your Tables",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Saving to Excel",
        "Basic save",
        "Add a title, subtitle, and notes",
        "More table examples",
        "Frequency table with running totals",
        "Grouped frequency table",
        "Basic cross-tabulation",
        "Cross-tabulation with column percentages",
        "Save multiple tables to one workbook",
        "Save each table to its own file",
        "Add an index sheet to a multi-table workbook",
        "Managing metadata for large reports",
        "Step 1: Create a template",
        "Step 2: Fill in the reference data",
        "Step 3: Export with the reference",
        "Saving to HTML",
        "Multiple tables in one HTML file",
        "Saving to PDF",
        "Saving to Word",
        "Summary"
      ],
      "created": "2026-05-05 14:30:46",
      "modified": "2026-11-20 07:40:02",
      "commits": 2
    },
    {
      "source": "write-xlsx.Rmd",
      "filename": "write-xlsx.html",
      "title": "Writing Excel workbooks with write_xlsx()",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The big picture",
        "One table",
        "A crosstab with merged headers",
        "Several column variables side by side",
        "A summary table",
        "A list of tables: one sheet each",
        "All tables on one sheet",
        "One workbook per table",
        "Grouped tables",
        "One group: one sheet per group",
        "Groups in one table",
        "Two or more groups: titles inside the sheet",
        "All groups on one sheet",
        "Group names as a column",
        "A table list: an index sheet with links",
        "Keeping titles and numbers in a reference table",
        "From a file",
        "Changing the look",
        "Passing options to openxlsx",
        "Where to go next"
      ],
      "created": "2026-11-20 07:40:02",
      "modified": "2026-11-20 07:40:02",
      "commits": 1
    },
    {
      "source": "google-sheets.Rmd",
      "filename": "google-sheets.html",
      "title": "Writing tables to Google Sheets",
      "engine": "knitr::rmarkdown",
      "headings": [
        "How it works",
        "Setup",
        "Create a sheet",
        "Update a sheet in place",
        "Styling",
        "Several tables in one spreadsheet",
        "With generate_output()",
        "Sharing",
        "Scheduled scripts",
        "Troubleshooting"
      ],
      "created": "2026-11-20 07:40:02",
      "modified": "2026-11-20 07:40:02",
      "commits": 1
    }
  ],
  "_score": 4.653212513775344,
  "_indexed": false,
  "_nocasepkg": "tsg",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://yng-me.r-universe.dev/tsg",
  "_previous": "0.1.4",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-11-20T13:34:01.000Z",
      "distro": "resolute",
      "commit": "420e9a0d76433ac752774c585a2eb82eea2ad5cc",
      "fileid": "https://r2.ropensci.org/c1dc816683a466b813141a9b14448b22b16d3cde8cd310bb1706b726b2659529",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44744444399"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-11-20T13:34:12.000Z",
      "distro": "resolute",
      "commit": "420e9a0d76433ac752774c585a2eb82eea2ad5cc",
      "fileid": "https://r2.ropensci.org/7ab696f46d170bf4d6b2f7276bbfd7d5f42b06339b3e9e3bfaf3336d5c4daf4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44744444399"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-11-20T13:33:58.000Z",
      "commit": "420e9a0d76433ac752774c585a2eb82eea2ad5cc",
      "fileid": "https://r2.ropensci.org/7eb4410dad4523986ff038612fc4e998a330acaf3239541a17f140ca488a3c16",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44744444399"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-11-20T13:34:50.000Z",
      "commit": "420e9a0d76433ac752774c585a2eb82eea2ad5cc",
      "fileid": "https://r2.ropensci.org/a935cf0ea87c26297bb9dceac9b8f7266a8973d07c7341f79614ad9cacc242fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44744444399"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-11-20T13:34:34.000Z",
      "commit": "420e9a0d76433ac752774c585a2eb82eea2ad5cc",
      "fileid": "https://r2.ropensci.org/421984113010e19969990f71894c1a823b19dfd86739491c77b586e69e4925df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44744444399"
    }
  ]
}