How to create QR code in R?

R ProgrammingServer Side ProgrammingProgramming

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:

raja
Published on 19-Nov-2020 07:55:02
Advertisements