Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GSK-Biostatistics/gto
gt in officeverse
https://github.com/GSK-Biostatistics/gto
Last synced: 1 day ago
JSON representation
gt in officeverse
- Host: GitHub
- URL: https://github.com/GSK-Biostatistics/gto
- Owner: GSK-Biostatistics
- License: apache-2.0
- Created: 2023-01-18T15:31:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T16:56:36.000Z (4 months ago)
- Last Synced: 2024-12-21T08:05:29.336Z (29 days ago)
- Language: R
- Homepage: https://gsk-biostatistics.github.io/gto/
- Size: 600 KB
- Stars: 25
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
- top-pharma50 - **GSK-Biostatistics/gto** - 04-14 21:43:52 | (Ranked by starred repositories)
- top-pharma50 - **GSK-Biostatistics/gto** - 04-14 21:43:52 | (Ranked by starred repositories)
README
# gto
[![Codecov test coverage](https://codecov.io/gh/GSK-Biostatistics/gto/branch/main/graph/badge.svg)](https://app.codecov.io/gh/GSK-Biostatistics/gto?branch=main)
[![R-CMD-check](https://github.com/GSK-Biostatistics/gto/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/GSK-Biostatistics/gto/actions/workflows/R-CMD-check.yaml)The goal of gto is to provide the tools to allow users to insert gt tables into officeverse. Right now the only supported output is word.
## Installation
You can install the development version of gto like so:
``` r
remotes::install_github("GSK-Biostatistics/gto")
```## Example
``` r
#load officer and gt
library(officer)
library(gt)
library(gto)## create simple gt table
gt_tbl <- gt(head(exibble))## Create docx and add gt table
doc <- read_docx()
doc <- body_add_gt(doc, value = gt_tbl)## Save docx
fileout <- tempfile(fileext = ".docx")
print(doc, target = fileout)
```