项目作者: carlganz

项目描述 :
Print barcodes in R
高级语言: R
项目地址: git://github.com/carlganz/zintr.git
创建时间: 2017-06-27T22:43:39Z
项目社区:https://github.com/carlganz/zintr

开源协议:Other

下载


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:

  1. # install.packages("devtools")
  2. 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:

  1. git clone https://github.com/zint/zint.git zint
  2. cd zint
  3. mkdir build
  4. cd build
  5. cmake ..
  6. make
  7. sudo make install
  8. sudo cp /usr/local/lib/libzint.* /usr/lib

Example

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

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

8675309


Hello World