R - devtools and RCurl

If you see during devtools (or any other R package) installation on Ubuntu these sort of errors:

* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/<user>/R/x86_64-pc-linux-gnu-library/3.0/RCurl’
Warning in install.packages :
  installation of package ‘RCurl’ had non-zero exit status
...
ERROR: dependency ‘RCurl’ is not available for package ‘httr’
* removing ‘/home/<user>/R/x86_64-pc-linux-gnu-library/3.0/httr’
Warning in install.packages :
  installation of package ‘httr’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘RCurl’ are not available for package ‘devtools’
* removing ‘/home/<user>/R/x86_64-pc-linux-gnu-library/3.0/devtools’
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

Then you should run following command to resolve it:

sudo apt-get install libcurl4-gnutls-dev