randy3k/radian

Cannot display message correctly for `targets::tar_make()`

Closed this issue · 4 comments

This is the message from radian:

image

Compare with that from R script:

image

Maybe it is caused by the locale:

image

Compare with that from R script:

image

But currently, R 4.2.0 supports utf-8 natively on Windows, so I think it should be enabled for R 4.2.0 or higher?

Someone posted a solution here #269 (comment)

I don’t have a windows to test it.

Seemingly, calling Sys.setlocale("LC_ALL", Sys.getenv("LANG")) solves this issue. Maybe this line should be included for Windows, though it will gives warnings.

I am seeing that there is no more issues, now.