View source: R/make_barcode_labels.R
make_barcode_labels | R Documentation |
this function makes barcodes from a column with unique IDs in a dataframe and creates a PDF. The type of labels used is: Avery 4778 and can be ordered here: https://www.lyreco.com/webshop/NONO/etiketter-avery-45-7-x-21-2-mm-hvit-eske-c3a0-960-stk-product-000000000002760191.html
make_barcode_labels(uniqueID, filename)
uniqueID |
tibble with IDs to make the barcode with column header called hashcode |
filename |
name of output file |
the uniqueID dataframe can be created using this code unique_PFTC_envelope_codes
PDF with barcodes from IDs
## Not run:
if (require(baRcodeR)) { # needs baRcodeR package installed
myIDs <- head(get_PFTC_envelope_codes(seed = 42))
file <- tempfile(fileext = ".pdf")
make_barcode_labels(uniqueID = myIDs, filename = file)
unlink(file)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.