我在回答了类似问题的问答后问了一个问题,并尝试了建议的解决方案,但没有成功。
我正在尝试在全新的Dell XPS15,OS Windows 10和最新版本的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
对于您愿意就可能的解决方案向我提出的任何建议,我将不胜感激。
答案 0 :(得分:0)
在对Stack Overflow进行了大量回答并解决了一些次要问题之后,核心问题变成了:
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")
我仍然不确定核心问题的含义和解决方案的实际作用。