6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: New Zorro version 2.25
[Re: jcl]
#479374
03/25/20 12:27
03/25/20 12:27
|
Joined: Oct 2018
Posts: 96
7th_zorro
Junior Member
|
Junior Member
Joined: Oct 2018
Posts: 96
|
There is some missing code int the ZorroFolder/include/r.h file. Below line of codes need to be added.
int Rstart(const char* source,int debug) { if(hR) return hR; // R session already running #ifdef WIN32 g->RLib = LoadLibrary("mt4R.dll"); PROC(RInit_); PROC(RIsRunning); PROC(RIsBusy); PROC(RExecute); PROC(RExecuteAsync); PROC(RAssignString); PROC(RAssignInteger); PROC(RAssignDouble); PROC(RAssignVector); PROC(RAssignMatrix); PROC(RGetInteger); PROC(RGetDouble); PROC(RGetVector); PROC(RPrint); PROC(RLastOutput); PROC(RDeinit); <========================================= THIS!! #endif hR = RInit_(strf("%s --no-save",g->sRTermPath), debug); if(!hR) { print(TO_WINDOW,"\nCan't open %s\n ",g->sRTermPath); return 0; } if(!RIsRunning(hR)) { print(TO_WINDOW,"\nCan't run R!\n "); return 0; } Rx("rm(list = ls());",0); // clear the workspace if(source) if(*source) Rx(strf("source('%sStrategy/%s')",slash(ZorroFolder),source),2); return hR; }
|
|
|
Re: New Zorro version 2.25
[Re: jcl]
#479489
04/02/20 12:42
04/02/20 12:42
|
Joined: Jul 2000
Posts: 27,986 Frankfurt
jcl
OP
Chief Engineer
|
OP
Chief Engineer
Joined: Jul 2000
Posts: 27,986
Frankfurt
|
|
|
|
|