Utilities for Handling Strings and Text

Utilities for handling character vectors that store human-readable text (either plain or with markup, such as HTML or LaTeX). The package provides, in particular, functions that help with the preparation of plain-text reports, e.g. for expanding and aligning strings that form the lines of such reports. The package also provides generic functions for transforming R objects to HTML and to plain text.


Utilities for handling character vectors that store human-readable text (either plain or with markup, such as HTML).

[More]

Installing the package

A stable version of the package is available from CRAN .

The latest version is available from http://enricoschumann.net. In an R session, just type:

install.packages('textutils', type = 'source',
                 repos = c('http://enricoschumann.net/R', getOption('repos')))

For the latest development version, check out the Git repository and build it. In a shell (e.g. sh or bash):

## first time: cd to directory and ...
$ git clone https://github.com/enricoschumann/textutils

## ... build and install the package
$ R CMD build textutils
$ R CMD INSTALL textutils_<0.1-0>.tar.gz  ## adjust version number

## optionally check
$ R CMD check textutils_<0.1-0>.tar.gz    ## adjust version number


## update package: cd to package directory and ...
$ git pull
$ cd ..
$ R CMD build textutils  # build/INSTALL/check as above

News

v0.1-11 (2019-05-01)

o fix 'HTMLencode' (thanks to Jacqueline Nolis for reporting the error); the function also gains a new argument 'use.iconv'

o new function 'here'

v0.1-10 (2018-12-14)

o 'toHTML.data.frame' gains a new argument 'eol'

v0.1-9 (2018-08-16)

o new function 'fill_in'

o new function 'title_case'

o new function 'TeXencode'

v0.1-8 (2017-06-21)

o new method 'toHTML.data.frame'

v0.1-7 (2017-03-30)

o small update in vignette

v0.1-6 (2016-12-16)

o CRAN release

v0.1-5 (2016-12-16)

o functions 'char2num' and 'expstr' are removed (for the latter, use 'strexp' instead)

v0.1-4 (2016-11-28)

o new function 'spaces'

v0.1-3 (2016-11-25)

o new function 'HTMLdecode'

v0.1-2 (2016-06-14)

o TeXunits: both 'from' and 'to' can be vectors of length > 1

v0.1-1 (2016-06-14)

o new function 'TeXunits'

v0.1-0 (2016-02-22)

o First release. The main purpose of the package is to provide generic functions: toHTML and toText.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("textutils")

0.2-1 by Enrico Schumann, 12 days ago


http://enricoschumann.net/R/packages/textutils/, https://github.com/enricoschumann/textutils


Browse source code at https://github.com/cran/textutils


Authors: Enrico Schumann [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports utils

Suggests tinytest


Imported by PMwR, VOSONDash, act, ngramr, orgutils, packagefinder, provDebugR, vosonSML.

Suggested by xutils.


See at CRAN