Closed yihanwu closed 6 years ago
The problem is that qrcode_gen references qrVersionInfo which then loads a data object called "qrCodeSpec." But qrCodeSpec cannot be exported automatically out of the qrcode package. (@importFrom qrcode qrCodeSpec) does not work.
Also, in qrVersionInfo, qrCodeSpec is called by
qrCodeSpec <- ""
data(qrCodeSpec, envir = environment())
So cannot even do anything other than loading qrcode directly.
Solved by using qrcode as a depends rather than an import.
Weird problem in qrCode.
The easiest solution is to use manually load qrCode with
to close off the connection already created, load the qrcode library and then run the create_PDF code again.