qr_code {qrcode}R Documentation

Generate the QR code

Description

A QR code is a two-dimensional barcode developed by the Denso Wave company.

Usage

qr_code(x, ecl = c("L", "M", "Q", "H"))

Arguments

x

the input string

ecl

the required error correction level. Available options are "L" (7%), "M" (15%), "Q" (25%) and "H" (30%). Defaults to "L".

Value

The QR code as a logical matrix with "qr_code" class.

Author(s)

Thierry Onkelinx

See Also

Other qr: coordinates(), generate_svg(), plot.qr_code(), print.qr_code(), qr_event(), qr_wifi()

Examples

qr_code("https://www.r-project.org")
qr <- qr_code("https://cran.r-project.org/package=qrcode", ecl = "M")
qr
plot(qr)
# the qr_code object is a logical matrix
str(qr)
qr[1:10, 1:10]

[Package qrcode version 0.2.2 Index]