Unable to install EGA exploratory graph analysis pacakge https://github.com/hfgolino/EGA

Hi,

I am new to R.

I tried to install the following package devtools::install_github('hfgolino/EGA'), it was not successful. I got the following error message (see below). I look forward to your advice.

> devtools::install_github('hfgolino/EGA')
Downloading GitHub repo hfgolino/EGA@master
These packages have more recent versions available.
Which would you like to update?

1:   NetworkTo... (1.2.1 -> 1.2.2) [CRAN]
2:   tidyr        (0.8.1 -> 0.8.2) [CRAN]
3:   CRAN packages only
4:   All
5:   None

Enter one or more numbers separated by spaces, or an empty line to cancel
1: 
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/.
√  checking for file 'C:\Users\amuthavallithiya\AppData\Local\Temp\RtmpUT24QF\remotes6c4cea24d6\hfgolino-EGA-4497835/DESCRIPTION' ...
-  preparing 'EGA': (616ms)
√  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'
   
Installing package into β€˜C:/Users/amuthavallithiya/OneDrive - World Health Organization/Documents/R/win-library/3.5’
(as β€˜lib’ is unspecified)
* installing *source* package 'EGA' ...
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Note: possible error in 'layout(network, title = title, ': unused arguments (title = title, shapes = edge_shapes, xaxis = axis, yaxis = axis, legend = list(x = 100, y = 0.5)) 
** help
*** installing help indices
  converting help for package 'EGA'
    finding HTML links ... done
Warning in FUN(X[[i]], ...) : internal error -3 in R_decompress1
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error: package or namespace load failed for 'EGA' in namespaceExport(ns, exports):
 undefined exports: getClarkeZones, getParkesZones, plotClarkeGrid, plotParkesGrid
Error: loading failed
Execution halted
*** arch - x64
Error: package or namespace load failed for 'EGA' in namespaceExport(ns, exports):
 undefined exports: getClarkeZones, getParkesZones, plotClarkeGrid, plotParkesGrid
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/Users/amuthavallithiya/OneDrive - World Health Organization/Documents/R/win-library/3.5/EGA'
* restoring previous 'C:/Users/amuthavallithiya/OneDrive - World Health Organization/Documents/R/win-library/3.5/EGA'
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package β€˜C:/Users/AMUTHA~1/AppData/Local/Temp/RtmpUT24QF/file6ca320b7/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

Did you install Rtools ? it is need to install package from source on windows. Intalling from github require Rtools.

Here's the link for the RTools, by the way: https://cran.r-project.org/bin/windows/Rtools/

It's not an R package (common source of confusion!), but instead a set of external dependencies needed for building R itself from source or for building add-on packages containing non-R code from source.

2 Likes

installr :package: is a good helper for this kind of task (installing Rtools)

it works on windows and you have a install.rtools function.

2 Likes

Thank you. I will try after installing Rtools

Thank you for the quick response. I appreciate it. I will try to install Rtools.

I installed Rtools.

But I still have problem with installing EGA package. Please see the error message below
library(devtools)

install_github("hfgolino/EGA")
Error in read.dcf(path) :
Found continuation line starting ' in psycholog ...' at begin of record.

2 posts were split to a new topic: 'names' attribute [...] must be the same length as the vector [...]

Hi Saran, please try installing the EGA package again. I fixed all bugs, and I have a new stable version now. Use the following code:

library(devtools)
install_github("hfgolino/EGA", dep = TRUE)

Best wishes,
Hudson

A post was split to a new topic: Tried install_github("hfgolino/EGA", dep = TRUE) getting error "Installation failed: SSLRead() return error -9806"