Description Usage Arguments Details Value Examples
View source: R/qg_print_labels.R
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.
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")
|
info |
data.frame with content for barcode |
template |
path to yaml file with configuration details |
to_file |
path to output file |
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
nothing
1 2 3 | if (interactive()) {
qg_print_labels()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.