首页 > 解决方案 > 为什么我不能从 github 安装包?

问题描述

我是 R 的初学者。我在 R 中有一个问题,希望你能帮助我解决它。我想从 GITHUB 安装 EGA 和 epmr 包。所以,我使用了下面的 R 命令,但它显示错误。我需要这些软件包进行分析。请帮我解决这个问题。

devtools::install_github("hfgolino/EGA", dep = FALSE)

devtools::install_github("talbano/epmr", dep=FALSE)

R的错误:

devtools::install_github("hfgolino/EGA", dep = FALSE)
Downloading GitHub repo hfgolino/EGA@master
√  checking for file 'C:\Users\ramsa\AppData\Local\Temp\RtmpGotfZq\remotes189861a473d\hfgolino-EGA-1a50a8e/DESCRIPTION' ... 
-  preparing 'EGA':
√  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 'EGA_0.4.tar.gz'

Error in .External2(C_loadhistory, file) : 
  'loadhistory' can only be used in Rgui and Rterm
Calls: <Anonymous>
Execution halted
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/ramsa/AppData/Local/Temp/RtmpGotfZq/file189829151eca/EGA_0.4.tar.gz’ had non-zero exit status
In addition: Warning messages:
1: In untar2(tarfile, files, list, exdir) :
  skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir) :
  skipping pax global extended headers

最好的问候, 阿斯加尔

标签: r

解决方案


推荐阅读