[英]Tried Everying, Searched Everything, Issues installing Quantstrat package from Github
Installing Quantstrat Issues.安装 Quantstrat 问题。 I am running the latest versions of R, RStudio, and Rtools.
我正在运行最新版本的 R、RStudio 和 Rtools。 I have installed devtools / remotes packages and cannot seem to get quantstrat installed.
我已经安装了 devtools / remotes 软件包,但似乎无法安装 quantstrat。 enter image description here
在此处输入图片说明
I had similar problems too.我也有类似的问题。 Installing quantstrat via cmd works well for me.
通过 cmd 安装 quantstrat 对我来说效果很好。 Here are the steps:
以下是步骤:
R CMD build quantstrat
R CMD build quantstrat
R CMD INSTALL package_name_version_number.tar.gz
R CMD INSTALL package_name_version_number.tar.gz
Let me know if you have any other challenges.如果您有任何其他挑战,请告诉我。
I get the following error at step 4: 'R' is not recognized as an internal or external command, operable program or batch file.我在第 4 步收到以下错误:“R”不是内部或外部命令,也不是可运行的程序或批处理文件。
what do I need to do to overcome this.我需要做什么来克服这个问题。
Here is the fix that worked for me:这是对我有用的修复程序:
There could be version issues depending on what version of R that you have especially for Blotter and PerformanceAnalytics.可能存在版本问题,具体取决于您拥有的 R 版本,特别是用于 Blotter 和 PerformanceAnalytics。 Since PerformanceAnalytics to install blotter, you must ensure that version force compatibility and the easiest way is just to install it fresh.
由于 PerformanceAnalytics 安装吸墨纸,您必须确保版本强制兼容性,最简单的方法就是重新安装它。 Start by installing PerformanceAnalytics then blotter then quantstrat and you should be in good shape.
首先安装 PerformanceAnalytics,然后是吸墨纸,然后是 quantstrat,您应该处于良好状态。 Use the code below and let me know how your results turn out.
使用下面的代码,让我知道您的结果如何。 Took me a few hours to solve it, but just got it done today (7/27/2020)
我花了几个小时才解决,今天才搞定 (7/27/2020)
install.packages("PerformanceAnalytics") install.packages("性能分析")
remotes::install_github("braverock/blotter")遥控器::install_github("braverock/blotter")
remotes::install_github("braverock/quantstrat", force = TRUE) remotes::install_github("braverock/quantstrat", force = TRUE)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.