This is the published version of the R code used to develop the first draft of the Hemiptera of Canada DNA Barcode Reference Library. The supporting files, necessary to reproduce all analyses in the publication, are available as supplementary material from the publisher's website.