Learn R Programming

qrcode (version 0.2.0)

qr_logo: Generate QR code with a logo on top

Description

Will create an svg file with the QR code and logo.

Usage

qr_logo(
  x,
  logo,
  filename,
  size = 300,
  foreground = "black",
  background = "white",
  show = interactive()
)

Arguments

x

the input string

logo

the path to a logo image file

filename

Where to store the QR code as svg file. Silently overwrites existing files. Tries to create the path, when it doesn't exist.

size

width of the svg file in pixels. Defaults to 300.

foreground

Stroke and fill colour for the foreground. Use a valid CSS colour. Defaults to "black".

background

Fill colour for the background. Use a valid CSS colour. Defaults to "white".

show

Open the file after creating it. Defaults to TRUE on interactive() sessions, otherwise FALSE.