Learn R Programming

⚠️There's a newer version (1.1.3) of this package.Take me there.

Overview

Create RTF table and figure with flexible format.

Installation

  1. Download the package in this code repository.
  2. Unzip the file.
  3. Open the *.Rproj file by Rstudio.
  4. In Rstudio console, run devtools::install().

Highlighted Features

The R package r2rtf provided flexibility to provide features below:

  • Necessary options to create highly customized RTF table and figure.
  • Simple to use parameters and data structure.
    • Customized column header: split by “|”.
    • Three required parameters for the output tables (data, filename, column relative width).
    • Flexible and detail control of table structure.
  • Format control in cell, row, column and table level for:
    • Border Type: single, double, dash, dot, etc.
    • Alignment: left, right, center, decimal.
    • Column width.
    • Text appearance: bold, italics, strikethrough, underline and any combinations.
    • Font size.
    • Text and border color (657 different colors named in color() function).
    • Special characters: any character in UTF-8 encoding (e.g. Greek, Symbol, Chinese, Japanese, Korean).
  • Append several tables into one file.
  • Pagination.
  • Built in raw data for validation.

Copy Link

Version

Install

install.packages('r2rtf')

Monthly Downloads

3,518

Version

0.1.1

License

GPL-3

Maintainer

Yilong Zhang

Last Published

April 3rd, 2020

Functions in r2rtf (0.1.1)

rtf_read_png

Read PNG figures into Binary Files
rtf_source

Add data source attributes to the table
rtf_figure

Add Figure Attributes
rtf_body

add table body attributes to the table
rtf_footnote

Add footnote attributes to the table
rtf_title

Add title attributes to the table
adsl

A Subject Level Demographic Dataset
tbl_2

Between Group Results from an ANCOVA Model
unicode_latex

Dictionary of Unicode and Latex Code
tbl_3

Root Mean Square Error from an ANCOVA model
write_rtf

Write an RTF table to .rtf file
adae

An Adverse Event Dataset
tbl_1

Within Group Results from an ANCOVA Model
rtf_colheader

Add column header to the table
rtf_encode

Render to RTF Encoding
HAMD17

An Efficacy Clinical Trial Data to Evaluate a Drug to Reduce Lower Back Pain