qg_print_labels: qg_print_labels

Description Usage Arguments Details Value Examples

View source: R/qg_print_labels.R

Description

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.

Usage

1
2
3
4
  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

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

Value

nothing

Examples

1
2
3

rsimon64/qr4genebanks documentation built on May 13, 2019, 9:52 p.m.