解决办法一:
1、设置RStudio文本显示的默认编码:RStudio菜单栏的Tools -> Global Options
2、code-->saving-->default text coding-->change-->UTF
方法二:
file-->reopen with encoding 再选择utf-8
转自:https://jingyan.baidu.com/article/86f4a73ec38d8a37d6526904.html