R - devtools Github install fails

前端 未结 2 497
一个人的身影
一个人的身影 2021-01-16 03:44

Trying to use Hadleys devtools package I am getting a certification error:

install_github(\"devtools\")
Installing github repo(s) devtools/master from hadley         


        
2条回答
  •  野的像风
    2021-01-16 03:55

    Try

    $ git clone git://github.com/hadley/devtools.git
    $ R CMD build devtools
    $ R CMD install devtools_1.2.99.tar.gz
    

    or just

    $ git clone git://github.com/hadley/devtools.git
    $ R CMD install devtools
    

    both worked for me on Ubuntu 12.04. Someone else can weigh in on whether there's any difference in building first then installing from tarball or not. I would guess no, but I have no idea

    edit: trying this on os X

    * installing to library ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library’
    * installing *source* package ‘devtools’ ...
    ** libs
    sh: make: command not found
    ERROR: compilation failed for package ‘devtools’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/devtools’
    * restoring previous ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/devtools’
    

提交回复
热议问题