knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
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:
```{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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.