Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install Devtools package for R studio mounted on linux redhat server

I'm unable to install the devtools package in R Studio on a redhat linux server. These error messages showed up:

ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/xx/R/x86_64-redhat-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/xx/R/x86_64-redhat-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’

I can't install the RCurl package too. I've tried to install the libcurl libraries too:

sudo yum install libcurl4-openssl-dev
sudo yum install libcurl4-gnutls-dev

But the system says no such packages are available available.

Is there any other way to install the devtools package? Or how can I resolve the Rcurl installation issue?

like image 980
Ruser Avatar asked Nov 27 '13 07:11

Ruser


People also ask

What does Devtools :: Install () do?

Building and installing: install() reinstalls the package, detaches the currently loaded version then reloads the new version with library() . Reloading a package is not guaranteed to work: see the documentation for unload() for caveats. build() builds a package file from package sources.

What are the functions in Devtools package?

The devtools package contains functions that help with R package development. These functions include create , which creates the initial structure for a new package, as well as a number of functions for adding useful infrastructure to the package directory and functions to load and document the package.


1 Answers

Resolved!

Just need to install curl-config

like image 65
Ruser Avatar answered Sep 28 '22 22:09

Ruser