utils {JMDplots}R Documentation

Some utilities for the package

Description

Utility functions for the package.

Usage

  addexif(name, title, paperref)
  hyphen.in.pdf(x)

Arguments

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

Details

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.


[Package JMDplots version 1.2.19-14 Index]