2013-05-12 13 views
5

Mam trochę trudności instalacji pakietu R xtsExtra na maszynie Windows ... i nie jestem pewien co jest źle ...zainstalowaniem pakietu xtsExtra na komputerze z Windows

> 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’ 

Jak zawsze każdy pomoc byłaby bardzo ceniona.

Z góry dziękuję.

+0

dla przyszłych użytkowników, patrz [to nowe, bardziej kompleksowe post] (http://stackoverflow.com/questions/25721884/how-should-i-deal-with -package-xxx-is-not-available-warning) – GSee

Odpowiedz

11

Zgodnie z ostrzeżeniem, jest on dostępny jako pakiet źródłowy, ale nie jako plik binarny, dlatego należy podać wartość type=source. Ten pracował dla mnie na polu Windows:

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