Skip to content
Prev 383510 / 398502 Next

[FORGED] Re: paste workable code to R 4.0.0 cause error

On 2020/4/29 11:55, Richard M. Heiberger wrote:
I test the code using ESS on Windows. It also give error, but with 
different position:

 > gz <- within(gz,
+               {
+                  a <- x1      #a???????
Error: invalid multibyte character in parser at line 4

Is it related with locale?

 > sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936
[2] LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.0.0 tools_4.0.0