Learn R Programming

⚠️There's a newer version (0.3.0) of this package.Take me there.

#QRcode Generator for R

Generate QRcode for R. Current version support all QRcode version(1-40) and different level of Error Correction Level(L,M,Q and H). Meanwhile the encoding method only support Alphanumeric(Uppercase,Numeric and some basic symbol) and UTF-8(Byte).

To create a QRcode, user can follow the following example.

qrcode_gen('www.r-project.org')

Current version has a software limit to version 10. This is because not all APP can decode large QRcode. To generate QRcode that larger than version 10.

inputString <- paste0(rep('abcdefghijklmnopqrstuvwxyz1234567890',63),collapse = '')
qrcode_gen(inputString,softLimitFlag = FALSE)

This package implement the whole process to create a QRcode. It is also beneficial to those user who interested to learn more about how a QRcode is create.

Copy Link

Version

Install

install.packages('qrcode')

Monthly Downloads

3,001

Version

0.1.1

License

GPL-3

Maintainer

Victor Teh

Last Published

August 23rd, 2015

Functions in qrcode (0.1.1)

polynomialGenerator

Function to generate polynomial
qrcode_gen

QRcode generator
qrCodeSpec

QRcode specifications and requirements.
qrInitMatrix

Function to initialize QRcode in matrix for different version
ECgenerator

Error correction code generator Generate error correction code based on the input polynomial.
formatPolyGen

Function to calculate and generate format polynomial
qrFillUpMatrix

Function to fill up the data bits
DataStringBinary

Function to convert input data string to binary polynomial
qrMask

Apply mask to the QRcode matrix
versionPolyGen

Function to calculate and generate version polynomial
qrVersionInfo

Function to identify the version of the QRcode based on input string
qrInterleave

Function to interleave the Data Code and Error Correction Core