make_barcode_labels: function to make barcode labels and produce a pdf

View source: R/make_barcode_labels.R

make_barcode_labelsR Documentation

function to make barcode labels and produce a pdf

Description

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

Usage

make_barcode_labels(uniqueID, filename)

Arguments

uniqueID

tibble with IDs to make the barcode with column header called hashcode

filename

name of output file

Details

the uniqueID dataframe can be created using this code unique_PFTC_envelope_codes

Value

PDF with barcodes from IDs

Examples

## 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)

audhalbritter/PFTCFunctions documentation built on Jan. 26, 2024, 5:31 p.m.