QR codes in R
I was searching for a good, simple, and affordable QR code generator. It also had to be fast, as I needed to generate codes ad hoc during presentations and lectures.
I tested numerous options.
Eventually, it occurred to me to explore how to do it in R. After all, I write a blog in R, build a website in R (using blogdown
), and create scripts for my classes in R (using bookdown
).
And voilà! Of course, there’s the qrcodes
package (installation: install.packages("qrcodes")
).
With just one line of code:
plot(qrcode::qr_code("Hello world"))