Skip to content

carlganz/zintr

Repository files navigation

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:

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:

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

8675309


Hello World

Releases

No releases published

Packages

No packages published