RRuntime error in Japanese

Issue #406 resolved
GregS created an issue

Since when were the RRuntime errors output to Japanese?

/Users/gms/anaconda/envs/evaluate_it/lib/python2.7/site-packages/rpy2/robjects/functions.pyc in __call__(self, *args, **kwargs)
    104         for k, v in kwargs.items():
    105             new_kwargs[k] = conversion.py2ri(v)
--> 106         res = super(Function, self).__call__(*new_args, **new_kwargs)
    107         res = conversion.ri2ro(res)
    108         return res

RRuntimeError:  summary(mod_0)$coef[4, 4] でエラー:  添え字が許される範囲外です 

Warnings, too are outputing Japanese characters:

 gms.test は有効なインストール済みパッケージではありません 

  warnings.warn(x, RRuntimeWarning)

 library(gms.test) でエラー: 
   gms.test は有効なインストール済みパッケージではありません

If I read Japanese, this would be fine, but alas. Why is this happening? What happened?

Comments (6)

  1. Laurent Gautier

    R is picking the locale from the environment, which must have changed. Did you try looking for R documentation about changing the locale ?

  2. GregS reporter

    Thanks. I figured out how to do it globally for my conda instance of R. Now to figure it out for my virtual environment.

  3. GregS reporter

    (Got it: just had to type export LANG=en_US.UTF-8 from the command prompt in my virtual env)

  4. Log in to comment