R语言报错警告,有没有人看看

有没有人帮忙看一下为什么用R语言跑gemtc包建模的时候老是出现以下警告
Warning messages:
1: In readChar(fileName, file.info(fileName)[["size"]]) :
can only read in bytes in a non-UTF-8 MBCS locale
2: In readChar(fileName, file.info(fileName)[["size"]]) :
can only read in bytes in a non-UTF-8 MBCS locale
3: In readChar(fileName, file.info(fileName)[["size"]]) :
can only read in bytes in a non-UTF-8 MBCS locale

img

可以参考下面的方法:
这个警告消息是指 R 在非 UTF-8 的 MBCS(多字节字符集)区域设置中只能读取字节数。

可以尝试将 R 的区域设置更改为 UTF-8。您可以使用以下代码来完成此操作:

Sys.setlocale("LC_ALL", "en_US.UTF-8")

此外,可以检查数据文件是否是 UTF-8 编码,如果不是,您可以将其转换为 UTF-8 编码