I'm trying to export a data.frame from R to excel using the write.xlsx
function of the openxlsx
package, however, because it has latin1 coding (probably in my base), I'm encountering the following error :
Error in stri_length(newStrs) :
invalid UTF-8 byte sequence detected; try calling stri_enc_toutf8()
Any idea how I can resolve this?