L'installation du package OpenSSL avait un statut de sortie non nul

Try in terminal:

sudo apt-get install libssl-dev
and after that try to install package openssl in R again.
Delta Sierra