> You might try to write the results into a file and read it back in R. This > is probably safer anyway.
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. > Why not run the original dyn library simulation as another user, then the > current user can do whatever they want with R? To do this enable "fast user > switching" in the "Accounts" preference. Now you can leave a program running > as one user and log in as another user to do something else. Of course, you > will need to create a 2nd user account. 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 _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac