Skip to content
Prev 6599 / 15075 Next

Interacting with R GUI app from another Cocoa app

This was my initial approach, but I expect a lot of overheads reading an array that can be as large as 100,000,000*10,000*100.

But did you mean that the Cocoa app should save its output as an R workspace? Is it possible to convert and save a C array into its equivalent in an R workspace?

While searching more on the web, I came across a post of someone wanting to export a C++ array to R, and Simon Urbanek replied "the short answer is no, you can't, because the memory has to be allocated by R". But R.app is Applescript enabled, so I should be able to tell R to create an array, and maybe later assign this object to the simulation output.
That would work, but that would not be very practicable, for example, I would need as many accounts as simulations I want to run at the same time.

Thanks for your help

Guillaume