如何在RStudio中更改系统语言?

时间:2018-03-26 02:36:06

标签: rstudio

我将系统语言改为英语:
1)在R,R控制台中:language = en
2)对于任何R脚本文件:Sys.setlocale(category =" LC_ALL",locale =" english")
但是当我在R Studio中创建一个新的R markdown文件时,日期仍然不是英文 有人可以帮忙解决这个问题吗?谢谢。

更新了sessionInfo()

R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

other attached packages:
[1] tmaptools_1.2-3        tmap_1.11-1            countrycode_1.00.0    
etc. 26 packages attached            

loaded via a namespace (and not attached):
[1] readxl_1.0.0       backports_1.1.2    osmar_1.1-7        plyr_1.8.4         lazyeval_0.2.1    
etc. 114 loaded via a namespace

0 个答案:

没有答案