Full disclosure, I have already posted this same question on SO, but on advice am trying this forum instead! I originally posted this issue several months ago in RStudio Community which helped narrow the problem but still no resolution (https://community.rstudio.com/t/https-protocol-error-when-upgrading-from-r-3-6-to-r-4-0/88234/2).
Around 2018, I installed RStudio Server (free edition) with R 3.6.0 on a CentOS 7 server following the instructions found here: (https://s3.amazonaws.com/rstudio-server/rstudio-server-pro-0.98.507-admin-guide.pdf )
Everything has been working with no issues. Recently, I've needed to upgrade the version of R, and have installed R 4.0.0 following the instructions here: (https://docs.rstudio.com/resources/install-r/ )
After installation, package installation on command line or in the RStudio IDE threw the following error:
Protocol "https" not supported or disabled in libcurl
I checked libcurlVersion() which returned:
[1] "7.47.0"
attr(,"ssl_version")
[1] "none"
attr(,"libssh_version")
[1] ""
attr(,"protocols")
[1] "dict" "file" "ftp" "gopher" "http" "imap" "pop3" "rtsp"
[9] "smtp" "telnet" "tftp"
So I can see https isn't listed in the protocols. There is another version of curl (7.73.0) on the computer (located in /usr/bin/curl) which does have https listed in its protocols, so I need to point R to this version instead. How can I point R to this version of curl?
PKG_CONFIG_PATH
PKG_CONFIG_PATH
I believe from a Stack Overflow question