qr_error: Create the message and error code bit string

View source: R/qr_error.R

qr_errorR Documentation

Create the message and error code bit string

Description

The function returns a bit string containing the message.

Usage

qr_error(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 message as a bits() object.

Author(s)

Thierry Onkelinx

See Also

Other internal: qr_encode(), qr_matrix(), qr_mode(), qr_version()

Examples

qr_error("HELLO WORLD")

qrcode documentation built on Nov. 11, 2023, 5:07 p.m.