Will keep failing without providing a valid reason.
The reason is lack of a system library – libcurl4-openssl-dev
.
Install the library from default sources:
sudo apt-get install libcurl4-openssl-dev
Now, install package RCurl inside R again, and we’re ready to go