Anyone can help I have an error when I install ecr package. Many thanks

R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin18.0.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages("ecr")
Installing package into ‘/usr/local/lib/R/3.5/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘openssl’, ‘httr’, ‘plotly’, ‘smoof’


Content type 'application/x-gzip' length 1194883 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

Content type 'application/x-gzip' length 147593 bytes (144 KB)
==================================================
downloaded 144 KB

Content type 'application/x-gzip' length 1860673 bytes (1.8 MB)
==================================================
downloaded 1.8 MB

Content type 'application/x-gzip' length 191617 bytes (187 KB)
==================================================
downloaded 187 KB

Content type 'application/x-gzip' length 150974 bytes (147 KB)
==================================================
downloaded 147 KB

* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
Homebrew 1.7.7
Homebrew/homebrew-core (git revision 68398; last commit 2018-10-10)
Using PKG_CFLAGS=-I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
 * deb: libssl-dev (Debian, Ubuntu, etc)
 * rpm: openssl-devel (Fedora, CentOS, RHEL)
 * csw: libssl_dev (Solaris)
 * brew: openssl@1.1 (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘openssl’
* removing ‘/usr/local/lib/R/3.5/site-library/openssl’
Warning in install.packages :
  installation of package ‘openssl’ had non-zero exit status
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/usr/local/lib/R/3.5/site-library/httr’
Warning in install.packages :
  installation of package ‘httr’ had non-zero exit status
ERROR: dependency ‘httr’ is not available for package ‘plotly’
* removing ‘/usr/local/lib/R/3.5/site-library/plotly’
Warning in install.packages :
  installation of package ‘plotly’ had non-zero exit status
ERROR: dependency ‘plotly’ is not available for package ‘smoof’
* removing ‘/usr/local/lib/R/3.5/site-library/smoof’
Warning in install.packages :
  installation of package ‘smoof’ had non-zero exit status
ERROR: dependency ‘smoof’ is not available for package ‘ecr’
* removing ‘/usr/local/lib/R/3.5/site-library/ecr’
Warning in install.packages :
  installation of package ‘ecr’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/jc/6ycwnckd47v3xvyfh2c5j71r0000gn/T/RtmpNjVKSV/downloaded_packages’
1 Like

The installation of a dependency (openssl) failed, so the entire installation failed. The error messages give some advice for how to fix the openssl problem:

I’d try the relevant instructions from the message above, and then try installing openssl on its own. If all goes well, you can try installing ecr again.

1 Like