Learn R Programming

pubprint

Pubprint is an extension for the R programming language. This package takes the output of several statistical tests, collects the characteristic values and transforms it in a publish-friendly pattern. Currently only the APA (American Psychological Association) style is supported with output to HTML, LaTeX, Markdown and plain text. The pubprint package is easily customizable, extendable and can be used well with knitr. Additionally pubprint offers a memory system that allows to save and retrieve results of computations.

The package is still in alpha stage. This means that it should work reliable but that the interface of the functions may be subject to change.

The Markdown output is in pandoc flavour and HTML output complies to MathML. If pubprint is used in a document that is processed by knitr, output format will be automatically determined.

Installation

CRAN, stable versions

Using CRAN installation is possible with a simple

install.packages("pubprint")

in a R session.

Bitbucket, stable versions

Download the package from here and install it in a Linux/Unix shell:

R CMD INSTALL pubprint_0.2.1.tar.gz

Bitbucket, development versions

Just download the current repository or get a copy with Mercurial from here and execute the makefile in the source directory:

hg clone https://bitbucket.org/mutluyum/pubprint
cd pubprint/
make

Please note that development versions may contain some bugs.

Documentation

You can find some documentation in the package documentation, later there will be an more in detail documentation with example files as well.

Requirements

R

  • check DESCRIPTION file.

LaTeX

  • The amsmath package may be required if text is set above or below another text (see out.above() and out.below()).
  • The textgreek package for typesetting greek letters without switching to math mode.

Bugs and missing features

Of course, there aren't any bugs in the pubprint package. But you may encounter unexpected behaviour, missing features or cryptic error messages. If so, please report it to the issue tracker. Thank you!

Contribution

Any contribution to pubprint is appreciated! Have a look at the development page. Please notice that the package is published under the BSD 2-clause licence and you confirm it by contributing.

Copy Link

Version

Install

install.packages('pubprint')

Monthly Downloads

21

Version

0.2.1

License

BSD_2_clause + file LICENSE

Maintainer

Rudolf Siegel

Last Published

May 24th, 2016

Functions in pubprint (0.2.1)

pull

Pulls an item from an object
pubprint

Initialises a pubprint object
pubprint-package

pubprint: Printing Results of Statistical Computing In A Publishable Way
pp_opts_style

Publication style options for the pubprint package
print.pubprint

Prints a pubprint object
pp_init_out

Setting the output format functions
pprint

Prints an object in a publishable manner
pp_opts_out

Output format options for the pubprint package
pp_opts

General options for the pubprint package
pp_init_style

Setting the publication style functions
push<-.pubprint

Adds another item to a pubprint object
push<-

Adds another item to an object
style.apa.anova

Formats a Analysis of Variance Result
pull.pubprint

Pulls an item from a pubprint object
style.apa.chisq

Formats a Pearson's Chi-squared Test for Count Data
style.apa.fisher

Formats a Fisher's Exact Test
style.apa.df

Formats a degree of freedom value
style.apa.cor.test

Formats a Correlation Between Paired Samples
style.apa.character

Formats a character vector
style.apa.bartlett

Formats a Bartlett Test of Homogeneity of Variances
style.apa.summary.lm.coeff

Formats the summary of a Linear Model Fit (unstandardized coefficients)
style.apa.numeric

Formats a numeric vector
style.apa.p.value

Formats a p value
style.apa.summary.lm.beta.coeff

Formats the summary of a Linear Model Fit (standardized coefficients)
style.apa.summary.lm.equation

Formats the summary of a Linear Model Fit (regression equation)
style.apa.t.test

Formats a t-test
style.apa.summary.lm.model

Formats the summary of a Linear Model Fit (model statistics)
style.apa.ks

Formats a Kolmogorov-Smirnov-Test
style.apa.summary.aovlist

Formats the summary of a Analysis of Variance Model
toClipboard

Pastes text to clipboard
style.apa.shapiro

Formats a Shapiro-Wilk Normality Test