"unexpected error INCOMPLETE_STRING" when printing a Chinese word

I tried to run a simple command in R, like a script like this

print("寛") 

And R gives me this error:

Error in the source (con, echo = echo, print.eval = print.eval, max.deparse.length = max.deparse.length ,: con: 2: 7: unexpectedly INCOMPLETE_STRING

I assume that this is some kind of encoding problem, and that the Chinese word is exactly what I need to use in R. What can I do?

+4
source share

Source: https://habr.com/ru/post/1391370/


All Articles