首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >R包HTTR包的devtools安装错误

R包HTTR包的devtools安装错误
EN

Stack Overflow用户
提问于 2012-09-12 02:19:00
回答 2查看 2.5K关注 0票数 1

当我试图从R中的Github安装Hadley的HTTR包时,我得到了以下错误。

代码语言:javascript
复制
> library(devtools)
> install_github("httr")
Installing github repo(s) httr/master from hadley
Installing httr.zip from https://github.com/hadley/httr/zipball
Installing httr
* checking for file 'C:\Users\btibert\AppData\Local\Temp\RtmpSGjjYA\hadley-httr-ee0eafb/DESCRIPTION' ... OK
* preparing 'httr':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a 'data/datalist' file should be added
Error in if (any(update)) { : missing value where TRUE/FALSE needed
Execution halted
Error: Command failed (1)
In addition: Warning message:
running command '"C:/PROGRA~1/R/R-215~1.0/bin/i386/R" CMD build "C:\Users\btibert\AppData\Local\Temp\RtmpSGjjYA\hadley-httr-ee0eafb" --no-manual --no-vignettes' had status 1 

我不确定问题出在哪里。以下是我在Windows 7上的版本信息:

代码语言:javascript
复制
$platform
[1] "i386-pc-mingw32"

$arch
[1] "i386"

$os
[1] "mingw32"

$system
[1] "i386, mingw32"

$status
[1] ""

$major
[1] "2"

$minor
[1] "15.0"

$year
[1] "2012"

$month
[1] "03"

$day
[1] "30"

$`svn rev`
[1] "58871"

$language
[1] "R"

$version.string
[1] "R version 2.15.0 (2012-03-30)"

$nickname
[1] ""

更新:建议尝试安装devtools的开发版本。我得到了这个错误:

代码语言:javascript
复制
> library(devtools)
> install_github("devtools")
Installing github repo(s) devtools/master from hadley
Installing devtools.zip from https://github.com/hadley/devtools/zipball
Installing devtools
* checking for file 'C:\Users\btibert\AppData\Local\Temp\RtmpsbYABm\hadley-devtools-77011a6/DESCRIPTION' ... OK
* preparing 'devtools':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building 'devtools_0.8.tar.gz'
cygwin warning:
  MS-DOS style path detected: C:/Users/btibert/AppData/Local/Temp/RtmpsbYABm/devtools_0.8.tar.gz
  Preferred POSIX equivalent is: /cygdrive/c/Users/btibert/AppData/Local/Temp/RtmpsbYABm/devtools_0.8.tar.gz
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

Warning: invalid package 'Files/R/R-2.15.0/library'
Error: ERROR: cannot cd to directory 'C:/Program'
Error: Command failed (1)
In addition: Warning message:
running command '"C:/PROGRA~1/R/R-215~1.0/bin/i386/R" CMD INSTALL C:\Users\btibert\AppData\Local\Temp\RtmpsbYABm/devtools_0.8.tar.gz --library=C:/Program Files/R/R-2.15.0/library' had status 1 
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-09-12 07:13:39

你有没有试过devtools的dev版本?

代码语言:javascript
复制
install_github("devtools")
install_github("httr")

最近也有同样的问题,这就是解决方法。

票数 1
EN

Stack Overflow用户

发布于 2015-02-13 23:54:49

试试这个install.packages("devtools")

否则,尝试此命令并安装所需的软件包apt-get -y install libcurl4-gnutls-dev apt-get -y build-dep libcurl4-gnutls-dev

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12375603

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档