Full_Name: Maurice Berk
Version: 2.8.1
OS: RedHat Linux 64bit
Submission from: (NULL) (155.198.195.25)
The offending line in all 4 functions is:
width <- switch(units, `in` = res, cm = res/2.54, mm = 1/25.4,
px = 1) * width
The case for mm is clearly incorrect