[英]“non-zero exit status” error when trying to installing ICEWS R package
在經歷了提到類似問題的問答並嘗試了建議的解決方案但沒有成功后,我提出了這個問題。
I am trying to install the 'icews' R package from github on a brand new Dell XPS15, OS windows 10, and the latest version of Rstudio. 我嘗試通過“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
如果您願意就可能的解決方案向我提出任何建議,我將不勝感激。
在 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")
我仍然不確定核心問題的含義以及解決方案的實際作用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.