FT: Wrap Text With HTML Font Tag

Description Usage Arguments Value Warning Examples

Description

Wraps text with a font tags. Conveniently detects c('face', 'size' and/or 'color') and creates a font tag with the supplied text.

Usage

1
FT(..., text = "clipboard", copy2clip = interactive())

Arguments

text

A character vector or text copied to the clipboard. Default is to read from the clipboard.

copy2clip

logical. If TRUE attempts to copy the output to the clipboard.

...

1 to 3 arguments of c('face', 'size' and/or 'color'):

  • face- accepts one of the following c("arial", "arial_black", "comic_sans_ms", "courier", "courier_new", "georgia", "helvetica", "impact", "palatino", "times_new_roman", "trebuchet_ms", "verdanaBrowse").

  • size- is any valid whole number.

  • color- can be any R color or hex value.

Value

Returns a character vector wrapped with a font tag.

Warning

Ligatures parsing is very good, however, these elements may be incorrect. If a warning is thrown check the use of "ff", "fi", "fl", "ffi" and "ffl".

Examples

1
2
3
FT(6, text="guy")
FT(6, blue, text="guy")
FT(6, red, times_new_roman, text="guy")

trinker/reports documentation built on May 31, 2019, 9:51 p.m.