You have to check that the SSL client and the SSL server have a common combination of protocol / algorithm to start the connection. Otherwise the connection fails.
Note that more and more TLS 1.0 and 1.1 are forbidden by servers (not secure enough): for instance, GitHub has only TLS 1.2 and 1.3.
You can check the server using this online tool: https://github.com/openssl/openssl/issues/5806.
To check the client, you will have to find out which version of OpenSSL is used by your version of R (or maybe provided by the OS). OpenSSL is only a guess: R may also use libcurl, which may be built with another SSL library, but they all should support TLS 1.2 (at least the recent versions of these libraries).
Upgrading R and/or OpenSSL to the latests versions should solve the issue, but there is another possibility. Note that cowplot is on CRAN here, and it has the latest release.
Here you are using install_version
from devtools. Why not use the builtin R functions for package installation? Set the repository in R using for instance options(repos="https://cran.r-project.org/")
and install the package with install.packages("cowplot")
. The main CRAN mirror, https://cran.r-project.org/, supports older versions of TLS (1.0 and 1.1), so it should work.
See also these links: