尝试安装Quantstrat时变得疯狂

尝试安装Quantstrat时变得疯狂,r,quantmod,quantstrat,R,Quantmod,Quantstrat,我正在尝试安装Quanstart。到目前为止,我已经下载了Rtools35,当我使用代码时,我正在使用R3.5.1 devtools::install_github("braverock/blotter") 我收到这个错误 Downloading GitHub repo braverock/blotter@master Error: Could not find tools necessary to compile a package 这是路 Sys.getenv('PAT

我正在尝试安装Quanstart。到目前为止,我已经下载了Rtools35,当我使用代码时,我正在使用R3.5.1

  devtools::install_github("braverock/blotter")
我收到这个错误

   Downloading GitHub repo braverock/blotter@master
   Error: Could not find tools necessary to compile a package
这是路

 Sys.getenv('PATH')
[1] "C:\\Program Files\\R\\R-3.5.1\\bin\\x64;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Users\\Jordan\\AppData\\Local\\Microsoft\\WindowsApps;"

非常感谢您的帮助,谢谢!如果有更好的替代品,请告诉我

我终于明白了。您不能在Rstudio中执行此操作。您必须在R中完成。嗯,为什么他们让这变得如此困难?

您需要安装Rtools。RStudio应使Rtools易于安装和使用。如果您安装了Rtools并且RStudio知道这一点,则不确定为什么会出现问题。如果你在RStudio不需要的地方安装了Rtools,你可能会遇到问题。非常感谢@JoshuaUlrich如果你有时间,你能帮我回答关于使用Shiny with Quantstrat的问题吗。如果您建议Rtools的使用仅限于R,并且不能从RStudio(运行R)内部使用,那么您就错了。您能否确认Rtools位于RStudio中所示的
路径中?可能是RStudio中的
strsplit(Sys.getenv(“PATH”),“;”[[1]]]
,与“just R”中的相同命令形成对比,以查看是否是环境变量导致了该行为。