You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tentatively fixed the R CMD check issue in prepare_ae_specific() by wrapping the rtf_encode() call inside a try() call.
Although the RTF output looks ok, the root cause is not fixed. I suspect this is related to how r2rtf handles vector inputs (specifically, footnotes), perhaps relevant to Merck/r2rtf#88. Therefore, this might need a proper fix from upstream.
Warning messages:
1: In matrix(text_rtf, nrow = nrow(text), ncol = ncol(text)) :
data length differs from size of matrix: [2 != 1 x 1]
2: In matrix(text_rtf, nrow = nrow(text), ncol = ncol(text)) :
data length differs from size of matrix: [2 != 1 x 1]
3: In matrix(text_rtf, nrow = nrow(text), ncol = ncol(text)) :
data length differs from size of matrix: [2 != 1 x 1]
4: In matrix(text_rtf, nrow = nrow(text), ncol = ncol(text)) :
data length differs from size of matrix: [2 != 1 x 1]
The warning can be located to the footnote handling lines. The call chain is:
I tentatively fixed the R CMD check issue in
prepare_ae_specific()
by wrapping thertf_encode()
call inside atry()
call.Although the RTF output looks ok, the root cause is not fixed. I suspect this is related to how r2rtf handles vector inputs (specifically, footnotes), perhaps relevant to Merck/r2rtf#88. Therefore, this might need a proper fix from upstream.
To reproduce the issue:
The warning can be located to the footnote handling lines. The call chain is:
To reproduce this locally, one will need to use
R CMD check --as-cran
which takes warnings generated by code examples and vignettes seriously.FYI @wangben718 @LittleBeannie
The text was updated successfully, but these errors were encountered: