Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install devtools package after upgrading R

Tags:

r

devtools

I have just upgraded to R 3.2.1, and can no longer install the devtools package.

I get the following output:

install.packages('devtools')

trying URL 'http://cran.ma.imperial.ac.uk/bin/macosx/mavericks/contrib/3.2/devtools_1.8.0.tgz'
    Content type 'application/x-gzip' length 324861 bytes (317 KB)
    ==================================================
    downloaded 317 KB


    The downloaded binary packages are in
        /var/folders/zd/112dtz1x3575n4z10cm7nflw0000gn/T//RtmpzsBSdp/downloaded_packages

Load library:

library('devtools')

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘curl’ Error: package or namespace load failed for ‘devtools’

I have read the following post - Problems when installing devtools packages - which seems to have a solution for Linux(?), but I already have curl installed on my system, and I can't see how this will help me.

like image 407
drstevok Avatar asked Jul 08 '15 11:07

drstevok


1 Answers

The error message says:

there is no package called ‘curl’

Run:

install.packages(c('devtools','curl'))

Then try library('devtools')

If any other error persists, then update your post.

like image 123
zx8754 Avatar answered Oct 04 '22 02:10

zx8754