r2rtf

CRAN status Codecov test coverage CRAN Downloads R-CMD-check status

Overview

r2rtf is an R package to create production-ready tables and figures in RTF format. The R package is designed to

Installation

You can install the package via CRAN:

install.packages("r2rtf")

Or, install from GitHub:

remotes::install_github("Merck/r2rtf")

Highlighted Features

The R packager2rtf provided flexibility to enable features below:

Simple Example

library(dplyr)
library(r2rtf)

head(iris) %>%
  rtf_body() %>%                 # Step 1 Add attributes
  rtf_encode() %>%               # Step 2 Convert attributes to RTF encode
  write_rtf(file = "ex-tbl.rtf") # Step 3 Write to a .rtf file
Click here to see the output

Example Efficacy Table

Click here to see the output

Example Safety Table

Click here to see the output