In the example of the R tutorial there are this two lines of code
Code:
Rstart("MySignals.r",1);
// load all required R objects from a file in the Zorro Data folder
Rx(strf("load('%sData/MyObjects.bin')",slash(ZorroFolder)));
How do those files look like?
Last edited by Nanitek; 08/03/1611:21.
Re: Beginning with R: MySignals.r
[Re: nanotir]
#461378 08/03/1612:4208/03/1612:42
"save" is a R function that stores R objects in a file. The file names above are just place holders for your R script that might contain functions that process your signals in some way. They have no deeper meaning.
Re: Beginning with R: MySignals.r
[Re: jcl]
#461421 08/04/1616:5408/04/1616:54
There is r file named F.r and inside it there is just a function named F() and then I just execute Rstart("F.r",1); and after I type on zorro the line var P = Rd("F()"); and it saves the result of F over P right?
Re: Beginning with R: MySignals.r
[Re: nanotir]
#461440 08/05/1610:4408/05/1610:44
Ok thanks. It seems a bit magical, I can say for another low level coders but in my case it does. Thats why I wasnt unsure if this is just that and it will work.