REditorSupport / sublime-ide-r

R-IDE: Make Sublime Text a perfect IDE for R
MIT License
112 stars 7 forks source link

Setting LC_ALL doesn't work for R-IDE #13

Closed amirmasoudabdol closed 5 years ago

amirmasoudabdol commented 5 years ago

I'm wondering why I get this error when trying to "Clean and Build" using R-Box. I don't have this issue on RStudio or when I ran R from the terminal and it only appears inside Sublime. I've followed this instruction but it appears to be ineffective. I'm running macOS Mojave.

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_COLLATE failed, using "C" 
3: Setting LC_TIME failed, using "C" 
4: Setting LC_MESSAGES failed, using "C" 
5: Setting LC_MONETARY failed, using "C" 
amirmasoudabdol commented 5 years ago

Do you have any ideas on how to bypass this warning when compiling from Sublime Text?

randy3k commented 5 years ago

What OS are you currently on?

amirmasoudabdol commented 5 years ago

I'm using macOS Mojave.

randy3k commented 5 years ago

Sorry. I must be blind. You mentioned it in the original post.

randy3k commented 5 years ago

I believe you could create ~/.Renviron and put

LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

PS: untested

amirmasoudabdol commented 5 years ago

Thanks! That is actually working. It's interesting that the usual suspect .Rprofile doesn't work, either setting the bash values.