Learn R Programming

qrcode (version 0.3.0)

qr_code: 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"))

Value

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

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".

Author

Thierry Onkelinx

See Also

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

Examples

Run this code
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]

Run the code above in your browser using DataLab