How to create QR code in R?


A QR code is a barcode which is used to read the information about the object on which it is printed. This helps us to detect the useful information relevant to the object so that we can proceed with the next step depending on the operation. In R, we can create QR code by using qrcode_gen function of qrcode package.

Example1

Loading qrcode package:

> library(qrcode)

Creating a QR code for tutorialspoint:

> qrcode_gen('www.tutorialspoint.com')

Output:

Example2

> qrcode_gen('www.tutorix.com')

Output:

Example3

> qrcode_gen('www.r-project.org')

Output:

Updated on: 19-Nov-2020

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements