utils | R Documentation |
Utility functions for the package.
addexif(name, title, paperref)
hyphen.in.pdf(x)
name |
character, function name (added to Creator in PDF metadata) |
title |
character, title for PDF |
paperref |
character, reference (added to Subject in PDF metadata) |
x |
character, any text object |
addexif
is a utility function to write add PDF metadata using the ‘exiftool’ system command.
The file name is constructed from the function name (i.e. name.pdf
).
If ‘exiftool’ is not available, this function does nothing.
If a PDF device is active, hyphen.in.pdf
replaces all instances of ASCII hyphen (-
) in x
with the Unicode hyphen (\uad
).
This is done so that hyphens don't get displayed as minus signs in R graphics output, but it only works for the PDF device.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.