R语言程序包安装成功但

程序包‘tseries’打开成功,MD5和检查也通过>local({pkg<-select.list(sort(.packages(all.available=TRUE)... 程序包‘tseries’打开成功,MD5和检查也通过
> local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE)
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
不存在叫‘quadprog’这个名字的程辑包
错误: ‘tseries’程辑包或名字空间载入失败
展开
 我来答
skysunny夏天
2016-07-07
知道答主
回答量:19
采纳率:0%
帮助的人:3.9万
展开全部
你是不是用R Gui安装的,提示已经说了缺少quadprog依赖包,
用R Gui安装的话需要先把依赖包一个个安装上,比较麻烦,
可以在Rstudio上安装,

install.packages('tseries')
also installing the dependencies ‘quadprog’, ‘zoo’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/quadprog_1.5-5.zip'
Content type 'application/zip' length 52439 bytes (51 KB)
downloaded 51 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/zoo_1.7-13.zip'
Content type 'application/zip' length 899932 bytes (878 KB)
downloaded 878 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/tseries_0.10-35.zip'
Content type 'application/zip' length 327381 bytes (319 KB)
downloaded 319 KB

package ‘quadprog’ successfully unpacked and MD5 sums checked
package ‘zoo’ successfully unpacked and MD5 sums checked
package ‘tseries’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\yuexf\AppData\Local\Temp\RtmpqqGpKz\downloaded_packages
> library(tseries)

‘tseries’ version: 0.10-35

‘tseries’ is a package for time series analysis and computational finance.

See ‘library(help="tseries")’ for details.
它会自动把依赖包给你安装上
本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式