qr_version: Determine the required version Returns a list with the...

View source: R/qr_version.R

qr_versionR Documentation

Determine the required version Returns a list with the version, error correction level and mode. The bit string encodes mode and the length of the input string.

Description

Determine the required version Returns a list with the version, error correction level and mode. The bit string encodes mode and the length of the input string.

Usage

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

Author(s)

Thierry Onkelinx

See Also

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

Examples

qr_version("HELLO WORLD")
qr_version("hello world", ecl = "H")

ThierryO/qrcode documentation built on Oct. 2, 2024, 9:02 p.m.