Cannot install devtools package after upgrading R

故事扮演 提交于 2019-12-30 09:56:10

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/31291690/cannot-install-devtools-package-after-upgrading-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!