To be able to use the merge example, please either move it to a non-main package, or at least export the appendPDF function name.
Now I have to copy-paste that example code - if that is intended, than ok, but a properly maintained merge function would be better.