QC: Quick Convert: Pandoc Convert a String

Description Usage Arguments Details Value Warning Author(s) References Examples

Description

Uses Pandoc to convert from one form to another.

Usage

1
2
QC(to = "latex", from = "markdown", text = "clipboard",
  copy2clip = interactive())

Arguments

to

Pandoc type you're converting to (defualt is "latex").

from

Pandoc type you're converting from (defualt is "markdown").

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.

Details

This capitalizes every word of a string.

Value

Returns a character vector every word capitalized.

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".

Author(s)

Michael Nelson and Tyler Rinker<tyler.rinker@gmail.com>.

References

Pandoc Website http://stackoverflow.com/a/15539563/1000343

Examples

1
2
3
x <- "\\*note: I *like* chocolate **milk** too ***much***!"
QC(text=x)
QC(text=x, "html")

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