Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 21,112 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Rstart function can't call subfolder r file #487647
06/27/23 05:25
06/27/23 05:25
Joined: Oct 2018
Posts: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
When using Rstart function, how to indicate r file located in subfolder?
When c and r file located in zorro strategy folder, it is ok.
But Rstart function report error when c and r file located in zorro strategy/mycode folder.

Re: Rstart function can't call subfolder r file [Re: 7th_zorro] #487658
07/03/23 20:15
07/03/23 20:15
Joined: Aug 2017
Posts: 311
Netherlands
G
Grant Offline
Senior Member
Grant  Offline
Senior Member
G

Joined: Aug 2017
Posts: 311
Netherlands
You need to adjust the 'StrategyFolder' path in zorro.ini

https://zorro-project.com/manual/en/ini.htm

Re: Rstart function can't call subfolder r file [Re: Grant] #487659
07/04/23 03:00
07/04/23 03:00
Joined: Oct 2018
Posts: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
I tried to do what you said, but it didn't work properly.
Changing the folder in the UI Dropdown menu and changing the ini file value showed the same results.
I think there was an internal problem calling the r function.

Re: Rstart function can't call subfolder r file [Re: 7th_zorro] #487660
07/04/23 06:54
07/04/23 06:54
Joined: Aug 2017
Posts: 311
Netherlands
G
Grant Offline
Senior Member
Grant  Offline
Senior Member
G

Joined: Aug 2017
Posts: 311
Netherlands
Not sure what exactly went wrong. I would suggest to use the default settings.

Re: Rstart function can't call subfolder r file [Re: 7th_zorro] #487661
07/04/23 13:03
07/04/23 13:03
Joined: Oct 2018
Posts: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
I found a problem.

Rstart("test.r", 2); // error
Rstart("MyCode\\test.r", 2); // error
Rstart("MyCode/test.r", 2); // OK

Re: Rstart function can't call subfolder r file [Re: 7th_zorro] #487668
07/13/23 07:39
07/13/23 07:39
Joined: Jul 2000
Posts: 28,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,029
Frankfurt
Originally Posted by The mighty manual
When passing file names to R, use forward slashes for directories, f.i. "C:/Project/Trading/R/Data.csv". You can use the slash helper function in r.h for converting backslashes to forward slashes (f.i. slash(ZorroFolder)).


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1