[R] paste workable code to R 4.0.0 cause error

Jinsong Zhao j@zh@o @end|ng |rom ye@h@net
Wed Apr 29 02:05:13 CEST 2020


Hi there,

I have a piece of source code with some inline comments in Chinese. It 
works well when I copy it from a editor (gvim here), and paste it to 
Rgui console on R 3.6.3, however, when I do the same thing, R 4.0.0 give 
error message:

Error: invalid multibyte character in parser at line 21

If I source() the code from Rgui console, it can run without any error.

Any hints?

BTW, I do not make a minimal workable example yet.

Best,
Jinsong



More information about the R-help mailing list