我是在通过Q&之后问这个问题的,因为上面提到了类似的问题,并尝试了建议的解决方案,但没有成功。
我正在尝试在全新的戴尔XPS15、操作系统Windows10和最新版本的Rstudio上安装来自github的'icews‘R包。我尝试通过“devtools”、“remotes”和“githubinstall”包来安装这些包。我已经验证了Rtools是否已安装(它没有解决问题)。收到以下错误消息:
无论我使用哪一个,安装都会失败,并显示以下错误消息:
During startup - Warning message:
Setting LC_CTYPE= failed
√ checking for file 'C:\Users\...\AppData\Local\Temp\RtmpEHNrQX\remotes38706fd9500e\andybega-icews-417ac82/DESCRIPTION' ...
- preparing 'icews':
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'icews_0.2.0.9003.tar.gz'
Installing package into 'C:/Users/.../Documents/R/win-library/3.6'
(as 'lib' is unspecified)
Error: (converted from warning) Setting LC_CTYPE= failed
Execution halted
Error: Failed to install 'icews' from GitHub:
(converted from warning) installation of package 'C:/Users/.../AppData/Local/Temp/RtmpEHNrQX/file3870683f63a2/icews_0.2.0.9003.tar.gz' had non-zero exit status如果您愿意就可能的解决方案给我任何建议,我将不胜感激。
发布于 2019-10-16 20:21:25
在经历了许多关于堆栈溢出的答案并解决了几个次要问题之后,核心问题变成了:
Error: (converted from warning) Setting LC_CTYPE= failed Execution halted下面的解决方案,也是在Stack Overflow上找到的,最终解决了这个问题:
ys.setlocale(category = "LC_ALL", locale = "English_United States.1252") Sys.setenv(LANG="en_US.UTF-8") Sys.setenv(LC_ALL="en_US.UTF-8")我仍然不确定核心问题的含义是什么,以及解决方案实际上做了什么。
https://stackoverflow.com/questions/58247065
复制相似问题