R/qr-code.R

Defines functions qr_to_svg

Documented in qr_to_svg

#' QR Code generator to SVG file.
#'
#' @param text The text or URL to use to add to the QR code.
#' @param path The output path for the SVG file.
#'
#' @export
qr_to_svg <- function(text, path) {
    qrcode::qr_code(x = text) |>
        qrcode::generate_svg(filename = path)
}
lwjohnst86/lwj documentation built on July 8, 2023, 5:07 p.m.