我正在尝试使用R中的quantstrat包,我已经使用
install.packages("quantstrat", repos="http://R-Forge.R-project.org") 不过,我曾经用过
require(quanstrat) 我收到这样的信息:
加载所需的包: quantstrat失败,错误:无法找到“quantstrat”所需的“package‘blotter”
然后我用
install.packages("blotter", repos="http://R-Forge.R-project.org") 但是得到以下信息:
仅以源代码形式提供的软件包,可能需要编译C/C++/Fortran:“便签”--这些程序将不会安装
有人能提点建议吗?
发布于 2020-07-05 00:54:17
我在这里已经很晚了,但也许需要注意的是,“笔记”和"quantstrat“并不在CRAN上,几年前我搬到了GitHub。README on The repo (https://github.com/braverock/quantstrat)有更多关于安装便笺的信息,更重要的是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")https://stackoverflow.com/questions/30444648
复制相似问题