Hi,
In the addition to the returned value from R function, I am trying to store and access a separate object (e.g. a data frame) which I can access later, e.g. by using R code:
x02ac92fa2a4b47::x, where x is the object assigned inside the R function.
It would be something very similar to this on Stack Overflow:
https://stackoverflow.com/questions/24722550/accessing-objects-in-opencpu-sessionsHowever, I have not been able to accomplish this.
What I see as the returned output is:
/ocpu/tmp/x02ac92fa2a4b47/R/.val
/ocpu/tmp/x02ac92fa2a4b47/R/eval
/ocpu/tmp/x02ac92fa2a4b47/stdout
/ocpu/tmp/x02ac92fa2a4b47/source
/ocpu/tmp/x02ac92fa2a4b47/console
/ocpu/tmp/x02ac92fa2a4b47/info
/ocpu/tmp/x02ac92fa2a4b47/files/DESCRIPTION
I would expect to see "/ocpu/tmp/x02ac92fa2a4b47/R/x", but it is not there.
In NAMESPACE file, what I have specified to export is:
exportPattern("^[^\\.]")
OpenCPU version I am using is: OpenCPU single-user server, version 2.2.8
What am I missing here? Is there another (newer) approach which I can use to store and access objects by not having to return them.
Thank you very much in advance.