在 Windows 机器上安装包 xtsExtra [英] installing the package xtsExtra on a windows machine

查看:34
本文介绍了在 Windows 机器上安装包 xtsExtra的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 机器上安装 R 包 xtsExtra 时遇到了一些困难...,而且不太确定出了什么问题...

I am having a bit of difficulty installing the R package xtsExtra on a windows machine..., and not too sure whats wrong...

> install.packages("xtsExtra", ,repos="http://R-Forge.R-project.org")
Warning in install.packages :
  package ‘xtsExtra’ is not available (for R version 3.0.0)
Error in install.packages : argument is missing, with no default
> sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_3.0.0
> install.packages("xtsExtra", repos="http://R-Forge.R-project.org")
Warning in install.packages :
  package ‘xtsExtra’ is not available (for R version 3.0.0)
Installing package into ‘C:/Users/HMaeda/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)

   package ‘xtsExtra’ is available as a source package but not as a binary

Warning in install.packages :
  package ‘xtsExtra’ is not available (for R version 3.0.0)
> require(xtsExtra)
Loading required package: xtsExtra
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘xtsExtra’

一如既往,我们将不胜感激.

As ever any help would be greatly appreciated.

提前致谢.

推荐答案

正如警告所说,它可以作为源包使用,但不能作为二进制文件使用,因此请指定 type=source.这在 Windows 机器上对我有用:

As the Warning says, it is available as a source package, but not as a binary, so specify type=source. This worked for me on a Windows box:

install.packages("xtsExtra", repos="http://R-Forge.R-project.org", type="source")

这篇关于在 Windows 机器上安装包 xtsExtra的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆