Generate QR code

All the relevant functions for generating and displaying the QR code.

qr_code()

Generate the QR code

generate_svg()

Generate the QR code as an svg file

plot(<qr_code>) plot(<qr_logo>)

Plot the QR code This function plots to QR code to the open device.

print(<qr_code>)

Print the qr_code object

qr_event()

Generate a QR code for an event

qr_wifi()

Generate QR code with wifi login information

add_logo()

Add a logo to a QR code

coordinates()

Extract coordinates from a QR code object.

Internal functions

Functions used internally by qr_code().

qr_encode()

Create the bit encoding

qr_error()

Create the message and error code bit string

qr_matrix()

Prepare matrices with default patterns and unmasked data A list with a matrix containing the default patterns (finder pattern, timing pattern, separators, alignment pattern and dark module), the unmask data pattern and the version.

qr_mode()

Determine the required mode

qr_version()

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.

The bits S3 class

The bits class is a logical vector displayed as a string of 0 and 1.

as.character(<bits>)

Convert a bits object into a character string

bits()

Create a bits object

bits2int() int2bits()

Convert a bits object to an integer and vice versa

c(<bits>)

Combine bits

print(<bits>)

Print a bits vector Display the logical vector as a bit string where FALSE is shown as 0 and TRUE as 1.