1

我正在尝试quantstrat在 R 中使用该软件包。我已使用该软件包上传/安装了该软件包

install.packages("quantstrat", repos="http://R-Forge.R-project.org") 

但是,一旦我使用

require(quanstrat) 

我收到消息:

加载所需的包:quantstrat 失败并出现错误:找不到 'quantstrat' 所需的包 'blotter''</p>

然后我用

install.packages("blotter", repos="http://R-Forge.R-project.org") 

但收到以下消息:

仅以源代码形式提供的包,可能需要编译 C/C++/Fortran:'blotter' 这些将不会安装

任何人都可以提供一些建议吗?

4

1 回答 1

0

我在这里很晚了,但也许要注意“blotter”和“quantstrat”不在 CRAN 上,几年前搬到了 GitHub。repo ( https://github.com/braverock/quantstrat ) 上的 README 包含更多关于安装 blogger 的信息,更重要的是 quantstrat。

install.packages("devtools") # if not installed
install.packages("FinancialInstrument") #if not installed
install.packages("PerformanceAnalytics") #if not installed

# next install blotter from GitHub
devtools::install_github("braverock/blotter")
# next install quantstrat from GitHub
devtools::install_github("braverock/quantstrat")
于 2020-07-05T00:54:17.747 回答