knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Build Status Coverage Status

zintr

The goal of zintr is to provide barcode printing functionality to R using the Zint C library.

Installation

You can install zintr from github with:

# install.packages("devtools")
devtools::install_github("CannaData/zintr")

But you will need to install Zint first. See Zint documentation for OS specific instructions. For Linux you can easily install with git and cmake:

```{bash, eval = FALSE} git clone https://github.com/zint/zint.git zint cd zint mkdir build cd build cmake .. make sudo make install sudo cp /usr/local/lib/libzint.* /usr/lib

## Example

This is a basic example which shows you how to solve a common problem:

```r
library(zintr)
barcode_print(8675309, "barcode1.png")
barcode_print("Hello World", "barcode2.png")

8675309


Hello World



CannaData/zintr documentation built on Oct. 28, 2020, 10:17 a.m.