不能安装用于Quantstrat的吸墨纸包装 [英] Cant install blotter package used for quantstrat
问题描述
我正在尝试在R中使用quantstrat
软件包.我已使用
I'm trying to use the quantstrat
package in R. I have uploaded/installed the package using
install.packages("quantstrat", repos="http://R-Forge.R-project.org")
但是我一次使用
require(quanstrat)
我收到消息:
正在加载所需的软件包:quantstrat 失败,发生错误:找不到"quantstrat"所需的包" blotter"
Loading required package: quantstrat Failed with error: ‘package ‘blotter’ required by ‘quantstrat’ could not be found’
然后我使用
install.packages("blotter", repos="http://R-Forge.R-project.org")
但收到以下消息:
仅以源格式提供的软件包,可能需要对C/C ++/Fortran进行编译: ‘吹牛’ 这些将不会安装
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘blotter’ These will not be installed
有人可以提出建议吗?
推荐答案
我在这里已经很晚了,但可能需要注意的是和"quantstrat"不在CRAN上,几年前移至GitHub.关于回购协议( https://github.com/braverock/quantstrat 的自述文件)具有有关以下内容的更多信息:安装吸墨纸,更重要的是安装quantstrat.
I am very late here, but perhaps relevant to note that "blotter" and "quantstrat" are not on CRAN, and several years ago moved to GitHub. The README on the repo (https://github.com/braverock/quantstrat) has more information for installing blotter and more importantly 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")
这篇关于不能安装用于Quantstrat的吸墨纸包装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!