qrencode_svg: Return a QR encoded string as an svg string

Description Usage Arguments See Also

View source: R/RcppExports.R

Description

Encodes a string as a QR coder

Usage

1
2
qrencode_svg(to_encode, version = 0L, level = 0L, hint = 2L,
  caseinsensitive = 1L, margin = 0L, size = 3L, dpi = 72L)

Arguments

to_encode

character string to encode

version

version of the symbol. If 0, the library chooses the minimum version for the given input data.

level

error correction level (0 - 3, lowest to highest)

hint

tell the library how Japanese Kanji characters should be encoded:

  • If "3", the library assumes that the given string contains Shift-JIS characters and encodes them in Kanji-mode.

  • If "2" is given, all of non-alphanumerical characters will be encoded as is. If you want to embed UTF-8 string, choose this. Trying to encode UTF-8 with modes will cause an error.

  • "0" is "numeric mode",

  • "'1" is "alphanumeric mode"

  • "5" is "ECI mode".

caseinsensitive

case-sensitive(1) or not(0).

margin

width of the marginsl default is 4

size

module size in dots (pixels); default is 3

dpi

resolution; default = 72

See Also

http://www.qrcode.com/en/about/version.html


hrbrmstr/qrencoder documentation built on May 17, 2019, 5:12 p.m.