gpt4 book ai didi

r - tseries 包安装失败

转载 作者:行者123 更新时间:2023-12-05 00:37:15 33 4
gpt4 key购买 nike

我正在尝试在 R 上安装 tseries 包。我得到以下输出:

> install.packages('tseries') 
Warning in install.packages("tseries") :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
--- Please select a CRAN mirror for use in this session ---
CRAN mirror

1: Argentina (La Plata) 2: Argentina (Mendoza)
3: Australia (Canberra) 4: Australia (Melbourne)
5: Austria 6: Belgium
7: Brazil (PR) 8: Brazil (RJ)
9: Brazil (SP 1) 10: Brazil (SP 2)
11: Canada (BC) 12: Canada (NS)
13: Canada (ON) 14: Canada (QC 1)
15: Canada (QC 2) 16: Chile
17: China (Beijing 1) 18: China (Beijing 2)
19: China (Hefei) 20: China (Hong Kong)
21: China (Xiamen) 22: Colombia (Bogota)
23: Colombia (Cali) 24: Denmark
25: France (Toulouse) 26: France (Lyon 1)
27: France (Lyon 2) 28: Germany (Berlin)
29: Germany (Goettingen) 30: Germany (Muenchen)
31: Germany (Wiesbaden) 32: Greece
33: Indonesia 34: Iran
35: Ireland 36: Italy (Milano)
37: Italy (Padua) 38: Italy (Palermo)
39: Japan (Hyogo) 40: Japan (Tsukuba)
41: Korea 42: Mexico (Mexico City)
43: Mexico (Texcoco) 44: Netherlands (Amsterdam)
45: Netherlands (Utrecht) 46: New Zealand
47: Norway 48: Philippines
49: Poland (Gdansk) 50: Poland (Oswiecim)
51: Poland (Wroclaw) 52: Russia
53: Singapore 54: Slovakia 1
55: Slovakia 2 56: South Africa
5 7: Spain (Madrid) 58: Sweden
59: Switzerland 60: Taiwan (Taichung)
61: Taiwan (Taipei 1) 62: Taiwan (Taipei 2)
63: Thailand 64: UK (Bristol)
65: UK (London) 66: UK (St Andrews)
67: USA (AZ) 68: USA (CA 1)
69: USA (CA 2) 70: USA (IA)
71: USA (MA) 72: USA (MI)
73: USA (MO) 74: USA (OH)
75: USA (OR) 76: USA (PA 1)
77: USA (PA 2) 78: USA (TX 1)
79: USA (TX 2) 80: USA (WA 1)
81: USA (WA 2)

Selection: 80
Warning: dependency ‘quadprog’ is not available
trying URL 'http://cran.fhcrc.org/src/contrib/tseries_0.10-26.tar.gz'
Content type 'application/x-gzip' length 163770 bytes (159 Kb)
opened URL
==================================================
downloaded 159 Kb

ERROR: dependencies ‘quadprog’ are not available for package ‘tseries’
* removing ‘/usr/local/lib/R/site-library/tseries’

The downloaded packages are in
‘/tmp/Rtmp4BUi9T/downloaded_packages’
Warning message:
In install.packages("tseries") :
installation of package 'tseries' had non-zero exit status

我怎样才能安装这个包?

最佳答案

t系列取决于 quadprog 包裹。你没有安装那个包,它在你使用的 R 版本的 CRAN 镜像上不可用(未说明)。因此 t系列无法安装。

您需要安装 quadprog 对于您的 R 版本。如果您的版本落后于当前版本,则可能无法使用; quadprog 取决于 R >= 2.12.0 .

[顺便说一下,这些东西是 R 包,而不是库。]

关于r - tseries 包安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7132000/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com