tctcab afei2017 编码的问题,macOS的话统统用UTF-8就好了。试试这个: Sys.setlocale(category = "LC_ALL", locale = "zh_cn.utf-8") 不过我没有苹果也测试不了[因为穷 来源: https://support.rstudio.com/hc/en-us/community/posts/209786848-Chinese-support-in-Rstudio-on-Mac-OS