Warning:In strsplit(code, “\n”, fixed = TRUE) : input string 1 is invalid in this locale,尽管没有报错,但每次运行都会跑出来这条警告信息,非常的烦人,检索后解决问题,在上有高人提供了解决方案,感谢他们。此处做一简单记录。
    原因:不明确
    解决办法:脚本开头添加:Sys.setlocale('LC_ALL','C')


    参考自: Warning: Input string not available in this locale ——stackoverflow