【发布时间】:2019-10-05 09:35:43
【问题描述】:
我在经历了提到类似问题的问答后提出了这个问题,并尝试了建议的解决方案但没有任何成功。
我正在尝试在全新的戴尔 XPS15、操作系统 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
如果您愿意就可能的解决方案向我提出任何建议,我将不胜感激。
【问题讨论】:
-
“具有非零退出状态”不是错误消息的信息部分。如果您编辑您的问题以在
install_github("andybega/icews")之后包含 all 输出,将会很有帮助 -
你需要的信息在
WARNING: Rtools is required to build R packages, but is not currently installed. Please download and install Rtools 3.5 from http://cran.r-project.org/bin/windows/Rtools/.部分你需要先从给定的URL安装Rtools -
谢谢!我确保使用 find_rtools() 安装了 Rtools。然而它并没有解决问题。我已经用当前的错误消息编辑了问题。
-
核心问题似乎是
Error: (converted from warning) Setting LC_CTYPE= failed Execution halted。以下解决了它: '"Sys.setlocale(category = "LC_ALL", locale = "English_United States.1252") Sys.setenv(LANG="en_US.UTF-8") Sys.setenv(LC_ALL="en_US.UTF -8") ' -
很高兴听到您解决了问题!如果您能够解决您的问题,Stack Overflow 实际上鼓励您回答您自己的问题(并在可能的情况下接受该解决方案)。
标签: r windows-10 failed-installation