randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

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

Closed psychelzh closed 1 year ago

psychelzh commented 1 year ago

This is the message from radian:

image

Compare with that from R script:

image

psychelzh commented 1 year ago

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?

randy3k commented 1 year ago

Someone posted a solution here https://github.com/randy3k/radian/issues/269#issuecomment-1169663251

I don’t have a windows to test it.

psychelzh commented 1 year ago

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.

psychelzh commented 1 year ago

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