Learn R Programming

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

Introduction to reporter

Historically, R has not been very strong on reporting. The reporter package aims to fill that gap.

Using reporter, you can create a report in just a few lines of code. Not only is it easy to create a report, but the reporter package can handle all sorts of situations that other packages struggle with.

For example, unlike other packages, the reporter package creates the entire report: page header and footer, titles, footnotes, tables - everything. The end result of a reporter call is a complete, printable report.

In addition, reporter can handle page breaking, page wrapping, and automatic sizing of column widths. The package offers a choice of output file types. And it supports the inclusion of tables, text and graphics into a report.

What is more, the package does not expect you to know R Markdown, knitr, or pandoc. You do not need to learn Latex, HTML, or any other intermediate language. With reporter, you send your data into a create function, assign titles and footnotes, and write the report. That's it!

If you are familiar with SAS® software, you may notice some similarity between reporter functions and proc report. This similarity, however, is only on the surface. The implementation of reporter is done entirely in R, and, internally, is modeled in a different way. However, SAS® users will find the reporter functions very convenient and easy to understand compared to the alternatives.

Installation

The reporter package can be installed from the console. Simply run the following command:

install.packages("reporter")

Or if you want the latest development version, you can install it directly from github:

devtools::install_github("https://github.com/dbosak01/reporter")

Then put the following line at the top of your program or script:

library(reporter)

The reporter package will give you access to a number of functions to help create, lay out, and write your report to the file system. For examples and usage information, visit the reporter documentation site here.

Getting Help

If you need help, the first place to turn to is the reporter web site. The web site has full documentation on all reporter functions.

If you want to look at the code for the reporter package, visit the github page here.

If you encounter a bug or have a feature request, please submit an issue here.

See Also

The reporter package is part of the sassy meta-package. The sassy meta-package includes several packages that help make R easier for SAS® programmers. You can read more about the sassy package here.

Copy Link

Version

Install

install.packages('reporter')

Monthly Downloads

745

Version

1.3.1

License

CC BY-NC 4.0

Maintainer

David Bosak

Last Published

March 10th, 2022

Functions in reporter (1.3.1)

column_defaults

Set default attributes for one or more columns
create_plot

Create plot content
lowcase_parens

Functions to format the population label
footnotes

Adds a footnote block
NotesOnPDF

Notes on PDF output type
add_content

Add content to a report
create_report

Create a report
page_by

Adds a page by variable
options_fixed

Set options for a fixed-width report
page_footer

Adds a page footer
page_header

Add a page header
print.report_spec

Prints the report specification
print.plot_spec

Prints the plot spec
write_registration_file

Create a registration file
create_text

Create text content
title_header

Adds a title header block
define

Defines a column
titles

Adds a title block
set_margins

Set page margins
reporter

reporter: A package for creating statistical reports
create_table

Create a table
spanning_header

Defines a spanning header
write_report

Write a report to the file system
stub

Defines a report stub
print.text_spec

Prints the text spec
print.table_spec

Prints the table spec