“unexpected INCOMPLETE_STRING” error when printing

2019-01-28 04:55发布

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

print("寛")

And R gives me an error like this:

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

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

标签: r encoding
0条回答
登录 后发表回答