Rstart function can't call subfolder r file

Posted By: 7th_zorro

Rstart function can't call subfolder r file - 06/27/23 05:25

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.
Posted By: Grant

Re: Rstart function can't call subfolder r file - 07/03/23 20:15

You need to adjust the 'StrategyFolder' path in zorro.ini

https://zorro-project.com/manual/en/ini.htm
Posted By: 7th_zorro

Re: Rstart function can't call subfolder r file - 07/04/23 03:00

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.
Posted By: Grant

Re: Rstart function can't call subfolder r file - 07/04/23 06:54

Not sure what exactly went wrong. I would suggest to use the default settings.
Posted By: 7th_zorro

Re: Rstart function can't call subfolder r file - 07/04/23 13:03

I found a problem.

Rstart("test.r", 2); // error
Rstart("MyCode\\test.r", 2); // error
Rstart("MyCode/test.r", 2); // OK
Posted By: jcl

Re: Rstart function can't call subfolder r file - 07/13/23 07:39

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)).
© 2024 lite-C Forums