Issues with downloading 'cgdsr' package

I have had issues installing the cgdsr package in R. I have tried installing even 'openssl' 'httr' and even 'devtools' and there was no success. Everything turns up as an error.

Homebrew/homebrew-core (git revision 8606ac; last commit 2020-03-27)
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.6/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.6/site-library/httr’
    Warning in install.packages :
    installation of package ‘httr’ had non-zero exit status
    ERROR: dependency ‘httr’ is not available for package ‘cgdsr’
  • removing ‘/usr/local/lib/R/3.6/site-library/cgdsr’
    Warning in install.packages :
    installation of package ‘cgdsr’ had non-zero exit status

The error message is asking you to install the openssl software in your system (not in R), do you have it installed? If so, have you followed the instructions on the error message?