Learn R Programming

formatters

[![Check

Copy Link

Version

Install

install.packages('formatters')

Monthly Downloads

3,857

Version

0.5.12

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Joe Zhu

Last Published

December 8th, 2025

Functions in formatters (0.5.12)

check_formats

Check if a format or alignment is supported
fmt_config

Format configuration
format_value

Converts a (possibly compound) value into a string using the format information
font_lcpi

Calculate lines per inch and characters per inch for font
export_as_txt

Export a table-like object to plain (ASCII) text with page breaks
export_as_pdf

Export as PDF
divider_height

Divider height
do_forced_paginate

Generic for performing "forced" pagination
export_as_rtf

Export as RTF
font_spec

Font size specification
formatters-package

formatters Package
lab_name

Label, name, and format accessor generics
matrix_form

Transform rtable to a list of matrices which can be used for outputting
is.wholenumber

Check if a value is a whole number
ifnotlen0

%||% (if length-0) alternative operator
nchar_ttype

Calculate font-specific string width
mf_strings

Getters and setters for aspects of MatrixPrintForm objects
nlines

Number of lines required to print a value
make_row_df

Make row layout summary data frames for use during pagination
list_formats

List of currently supported formats and vertical alignments
mpf_to_rtf

Transform MatrixPrintForm to RTF
page_lcpp

Determine lines per page (LPP) and characters per page (CPP) based on font and page type
num_rep_cols

Number of repeated columns
obj_round_type

Rounding Type
pag_indices_inner

Find pagination indices from pagination info data frame
pagdfrow

Create a row of a pagination data frame
pagination_algo

Pagination
paginate_indices

Paginate a table-like object for rendering
open_font_dev

Activate font state
padstr

Pad a string and align within string
main_title

General title and footer accessors
spread_integer

Spread an integer to a given length
ref_df_row

Create a row for a referential footnote information data frame
propose_column_widths

Propose column widths based on the MatrixPrintForm of an object
page_types

Supported named page types
valid_round_type

Round and prepare a value for display
toString

Transform objects into string representations
test_matrix_form

Create spoof matrix form from a data frame
table_inset

Access or (recursively) set table inset
var_labels_remove

Remove variable labels of a data.frame
spans_to_viscell

Transform a vector of spans (with duplication) into a visibility vector
vert_pag_indices

Find column indices for vertical pagination
var_labels<-

Set label attributes of all variables in a data.frame
with_label

Return an object with a label attribute
var_relabel

Copy and change variable labels of a data.frame
wrap_string

Wrap a string to a precise width
sprintf_format

Specify text format via a sprintf format string
split_word_ttype

wrap string given a Truetype font
var_labels

Get label attributes of variables in a data.frame
MatrixPrintForm-class

Class for Matrix Print Form
basic_pagdf

Basic/spoof pagination info data frame
default_horizontal_sep

Default horizontal separator
print,ANY-method

Print
default_page_number

Default page number format
DM

DM data
MatrixPrintForm

Constructor for Matrix Print Form
ex_adsl

Simulated CDISC-like data for examples
decimal_align

Decimal alignment