The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Hi Michael,
Did you get a chance to check out the stability of R?
If it proves to be unstable might it be possible instead to allow us to output to named files in our own "name space" that we can't download but can use as input to an R process we can interact with? They could run in processes that are separate to Live and Backtesting processes.
That would be pretty helpful for debugging. At the moment I log a very limited subset and import part of the log into R to visualise it. The process is tedious but I don't know a better way.
Cheers for the great work.
Regards,
Kyle
Hi , after this thread activity stopped in 2015, we have opted for RDotNet to enable R connectivity.
Please checkout this example: CallingRFromCSharp.cs.
Thank you for the example Alexandre. About this line...
engine.Evaluate("print('This is from R command.')");
Should I be able to see "This is from R command." in the plots or the log or somewhere?
Also is there some way to use the R plot function and view the output?
Thanks again.
Hi , for printing and plotting you will need to use Lean/QuantConnect API.
Basically, you will only be able to use R for calculations (which is the main reason to use it, right?).
Hi Alexandre, does the R engine also work when developing inside a Python instance?
Hi Brad,
Good question. At QuantConnect Cloud, it doesn't because we would need to add a specific library.
However, since python provides all the necessary mathematical tools for algorithm trading, what would be the usage case for R?
I'm not sure exactly the overlap between analytical packages for R and Python but there's some analyses that were performed in R that I'd like to test without having to recreate everything in Python. Not sure if it's simple or not to add it in but may be a nice addition.
Hi Brad,
Thank you for your feedback and we will take it into consideration. Please check out the libraries we currently support on this page for detail. We hope you enjoy using QC!
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can
continue your Boot Camp training progress from the terminal. We
hope to see you in the community soon!