我正在尝试安装 quantstrat,但是尝试此操作时总是遇到以下错误:
> install.packages("quantstrat",repos="http://R-Forge.R-project.org")
Warning in install.packages :
package ‘quantstrat’ is not available (for R version 3.0.1)
Installing package into ‘C:/Users/mp/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://R-Forge.R-project.org/bin/windows/contrib/3.0/quantstrat_0.7.8.zip'
Content type 'application/zip' length 1047389 bytes (1022 Kb)
opened URL
downloaded 1022 Kb
package ‘quantstrat’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\TEMP\Rtmp8uoKKX\downloaded_packages
> require(quantstrat)
Lade nötiges Paket: quantstrat
Lade nötiges Paket: foreach
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
es gibt kein Paket namens ‘iterators’
Failed with error: ‘Paket ‘foreach’ konnte nicht geladen werden’
抱歉,错误消息是德语。第一个错误是:“没有名为'iterators'的包”第二个错误是:“无法加载包'foreach'”