Creates a PDF file with barcoded labels given a data.frame, a template with formatting instructions and a name for the pdf file. Currently, only QR code is supported.

qg_print_labels(info = utils::read.csv(system.file("samples/invitro.csv",
  package = "qr4genebanks"), stringsAsFactors = FALSE),
  template = system.file("templates/label_seeds.yaml", package =
  "qr4genebanks"), to_file = "sample.pdf")

Arguments

info

data.frame with content for barcode

template

path to yaml file with configuration details

to_file

path to output file

Value

nothing

Details

All options for fine-tuning the label are contained within the template file. The file uses a yaml format. Options can be adjusted for different label sizes. The basic layout pattern consists of four blocks.

ID block

QR block

Info block

Optional info block

Examples

if (interactive()) { qg_print_labels() }