RobotWealth has a really good tutorial on how to bridge R with Zorro. I have yet to bridge R myself but I imagine when I do, this article will be a valuable resource:

https://robotwealth.com/integrating-r-with-the-zorro-backtesting-and-execution-platform/