This helper function converts a vector of images to a single PDF.
a vector of image files
a string with the name of the new PDF
no return value, called for side effects
Combines any number of image files of almost any type to a single PDF. The vector can consist of different image file types. See the 'Magick' package documentation https://cran.r-project.org/package=magick for details on supported file types. Note that on Linux, ImageMagick may not allow conversion to pdf for security reasons.