**http://withr.me/configure-character-encoding-for-r-under-linux-and-windows/ https://www.r-bloggers.com/fun-with-rprofile-and-customizing-r-startup/ LC_COLLATE=Chinese (Simplified)_People's Republic of China.936: LC_CTYPE=Chinese (Simplified)_People's Republic of China.936: LC_MONETARY=Chinese (Simplified)_People's Republic of China.936: LC_NUMERIC=C: LC_TIME=Chinese (Simplified)_People's Republic of China.936 LC_COLLATE=English_United States.1252; LC_CTYPE=English_United States.1252; LC_MONETARY=English_United States.1252; LC_NUMERIC=C;LC_TIME=English_United States.1252 http://psmethods.postach.io/post/ru-he-geng-gai-rde-yu-she-yu-xi http://bbs.pinggu.org/thread-440339-1-1.html Rgui.exe language=English http://r.789695.n4.nabble.com/R-encoding-question-td3057408.html Sys.setlocale(locale = "Chinese_China") Sys.setlocale(locale = "Chinese_China.936") http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a002613623.htm https://docs.moodle.org/dev/Table_of_locales https://support.rstudio.com/hc/en-us/community/posts/203113958-R-and-Rstudio-have-different-default-locales- https://support.rstudio.com/hc/en-us/community/posts/200635318-loading-Rprofile-site-settings-from-Rstudio https://github.com/dspim/R/wiki/R-&-RStudio-Troubleshooting-Guide Handling of .Rprofile When starting RStudio in an alternate working directory the .Rprofile file located within that directory is sourced. If (and only if) there is not an .Rprofile file in the alternate directory then the global default profile (e.g. ~/.Rprofile) is sourced instead. In Windows, you set the R_USER profile by opening up a command line and running: SETX R_PROFILE_USER "C:/.../.Rprofile" Customizing Startup R will always source the Rprofile.site file first. On Windows, the file is in the C:\Program Files\R\R-n.n.n\etc directory. You can also place a .Rprofile file in any directory that you are going to run R from or in the user home directory. At startup, R will source the Rprofile.site file. It will then look for a .Rprofile file to source in the current working directory. If it doesn't find it, it will look for one in the user's home directory. There are two special functions you can place in these files. .First( ) will be run at the start of the R session and .Last( ) will be run at the end of the session. http://www.statmethods.net/interface/customizing.html D:\KPC\William\Bio7\plugins\Bundled_R_3.1.2\R D:\KPC\William\Bio7\plugins\Bundled_R_3.1.2\R\library\base\R D:\KPC\R-3.1.2\library\base\R Rprofile.site D:\KPC\R-3.1.2\etc D:\KPC\William\Bio7\plugins\Bundled_R_3.1.2\R\etc