Hello,
I have a simulation model (command line tool) written in Objective C/
Cocoa. I would like to know if it is possible to call it from R and
get the results into R as well. The documentation explains how to do
it with C or Fortran, but I have not found anything with Objective C/
Cocoa.
Hello,
I have a standalone simulation model written in Objective C/Cocoa. Once the
simulations are done, I would like to send the output (a large C array) to
R.app for further analysis and plotting. I'm able to launch R.app from a Cocoa
app by this:
[[NSWorkspace sharedWorkspace] launc
> 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
Hello,
I have this test function:
onerun <- function(j) {
p <- numeric(10)
for (i in 1:9) {
p[i+1] <- j + p[i]
}
return(p)
}
Then I can call:
lapply(1:100, onerun)
I would like to multi-thread this, so I do:
Thanks for the reply! I should have noticed this: "multicomp should be
preferrably used in console R and code executed in parallel may never use GUIs
or on-screen devices."
> Guillaume,
>
> please read ?multicore -- especially the section "Warning".
>
> Cheers,
> Simon
___
Hello,
I would like to know how (if) I can, with Smultron or BBEdit as
external editors, execute a line or the whole document into the GUI
R.app. Ideally, I would type Apple+R and this would go. There is a
bundle to do this with Textmate, but I have not found anything for
Smultron or BBEd
Hi,
Check out these recent threads:
TextWrangler:
https://stat.ethz.ch/pipermail/r-sig-mac/2008-November/005534.html
Smultron:
https://stat.ethz.ch/pipermail/r-sig-mac/2008-December/005691.html
-steve
Hi,
Thanks a lot - apparently I did not search well in the archive. I will
just post a