Title: | Quick Response Code (QR Code) / Matrix Barcode Creator |
Version: | 0.1.0 |
Maintainer: | Bob Rudis <bob@rud.is> |
Description: | Quick Response codes (QR codes) are a type of matrix bar code and can be used to authenticate transactions, provide access to multi-factor authentication services and enable general data transfer in an image. QR codes use four standardized encoding modes (numeric, alphanumeric, byte/binary, and kanji) to efficiently store data. Matrix barcode generation is performed efficiently in C via the included 'libqrencoder' library created by Kentaro Fukuchi. |
Depends: | R (≥ 3.1.0), raster |
License: | GPL-2 |
LazyData: | true |
Suggests: | testthat |
LinkingTo: | Rcpp |
Imports: | Rcpp, base64enc, png |
URL: | http://github.com/hrbrmstr/qrencoder |
BugReports: | https://github.com/hrbrmstr/qrencoder/issues |
RoxygenNote: | 5.0.1 |
NeedsCompilation: | yes |
Packaged: | 2016-09-15 22:05:22 UTC; bob |
Author: | Bob Rudis [aut, cre], Kentaro Fukuchi [ctb] (libqrencoder) |
Repository: | CRAN |
Date/Publication: | 2016-09-16 01:50:10 |
Quick Response Code (QR Code) / Matrix Barcode Creator
Description
Quick Response codes (QR codes) are a type of matrix bar code and can be used to authenticate transactions, provide access to multi-factor authentication services and enable general data transfer in an image. QR codes use four standardized encoding modes (numeric, alphanumeric, byte/binary, and kanji) to efficiently store data. Matrix barcode generation is performed efficiently in C via the included 'libqrencoder' library created by Kentaro Fukuchi.
Author(s)
Bob Rudis (bob@rud.is)
Return a QR encoded string as a matrix
Description
Useful if you want to do your own post-processing
Usage
qrencode(to_encode)
Arguments
to_encode |
the data to encode |
Examples
qrencode("http://rud.is/b")
Return a QR encoded string as an x, y, z data.frame
Description
Useful for ggplot::geom_raster
Usage
qrencode_df(to_encode)
Arguments
to_encode |
the data to encode |
Examples
head(qrencode_df("http://rud.is/b"))
Return a QR encoded string as a base 64 encoded inline png
Description
Return a QR encoded string as a base 64 encoded inline png
Usage
qrencode_png(to_encode)
Arguments
to_encode |
the data to encode |
Note
data:image/png;base64,
is prepended to the encoded png
Examples
cat(qrencode_png("http://rud.is/b"))
Return a QR encoded string as a raster object
Description
Return a QR encoded string as a raster object
Usage
qrencode_raster(to_encode)
Arguments
to_encode |
the data to encode |
Examples
library(raster)
old_mar <- par()$mar
par(mar=c(0,0,0,0))
image(qrencode_raster("http://rud.is/b"), asp=1, col=c("white", "black"),
axes=FALSE, xlab="", ylab="")
par(mar=old_mar)
Encodes a string as a QR code
Description
Encodes a string as a QR coder
Usage
qrencode_raw(to_encode, version = 0L, level = 0L, hint = 2L,
caseinsensitive = 1L)
Arguments
to_encode |
character string to encode |
version |
version of the symbol. If |
level |
error correction level ( |
hint |
tell the library how Japanese Kanji characters should be
encoded. If " |
caseinsensitive |
case-sensitive( |