Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ gto Public

❗ This is a read-only mirror of the CRAN R package repository. gto — Insert 'gt' Tables into Word Documents

Notifications You must be signed in to change notification settings

cran/gto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gto

Codecov test coverage R-CMD-check

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:

remotes::install_github("GSK-Biostatistics/gto")

Example

#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)

About

❗ This is a read-only mirror of the CRAN R package repository. gto — Insert 'gt' Tables into Word Documents

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages