Rstudio中
在加载包,访问时遇到以下问题
trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/tseries_0.10-47.zip'
Content type 'application/zip' length 417424 bytes (407 KB)
downloaded 407 KB
package ‘tseries’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\jinkun\AppData\Local\Temp\RtmpQdjJMr\downloaded_packages
> library("tseries")
Error: package or namespace load failed for ‘tseries’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘TTR’
解决方法:
> install.packages("TTR")
> library("tseries")
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
‘tseries’ version: 0.10-47
‘tseries’ is a package for time series analysis and computational finance.
See ‘library(help="tseries")’ for details.