The problem is simple and annoying. I cannot print russian text neither in console nor in file.
Input:
print("hello world")
print("привет мир")
Output:
> print("hello world")
[1] "hello world"
> print("привет мир")
[1] "ïðèâåò ìèð"
I would not use russian at all, but sometimes I get errors in russian, and since they are not readable, I have no way to treat those errors:
> load(swirl)
Error in load(swirl) : íåïðàâèëüíûé àðãóìåíò 'file'