rlatexqr-codesweave

qrcode_gen in R


I am the function qrcode_gen in R to generate a qrcode. My objective is to generate a latex file using sweave, with a QRCode. But I cannot resize it.

qrcode_gen("YourString", softLimitFlag = FALSE, wColor = "White", bColor = "black")

Does someone know how to resize the image returned by the function qrcode_gen?

Thanks,


Solution

  • If you are anyway generating a latex file, you can let latex do the qrcode:

    \documentclass{article}
    
    \usepackage{qrcode}
    
    \begin{document}
    
    \qrcode[height=2cm]{YourString}
    
    
    \end{document}