Reputation: 408
Setup: - OS X 10.10.4 - R: 3.2.1 "World-Famous Astronaut" Start iTerm, start R, Start R runs to an Warning message:
print(Sys.getenv())
Output for print(Sys.getenv())
Upvotes: 1
Views: 3907
Reputation: 1
I had the same problem, and following the previous answer, it was solved. However, you need to export to C based on your error screenshot:
export LC_COLATE=C
export LC_TIME=C
export LC_MESSAGES=C
export LC_MONETARY=C
Upvotes: 0
Reputation: 96
I had the same problem like yours. I just type in terminal:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
and then I checked if it made changes by typing "locale". If you get script like this:
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
Then your problem is solved. Just check if the warning is gone by typing "R" in terminal.
Upvotes: 8