The goal of zintr is to provide barcode printing functionality to R using the Zint C library.
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
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")