search for: outtest

Displaying 2 results from an estimated 2 matches for "outtest".

Did you mean: outest
2010 Dec 03
2
How to get 'R' to talk BACK to other languages / scripts??
Hey everyone, I know that I can call 'R' from other scripts, and that I can make command calls from 'R' (e.g., using system() ). But how can I get 'R' to RETURN values to the script that called it. E.g., I would like to be able to do something like the following (as a simpler example) from a bash script: #!/bin/bash myTest=echo /usr/local/bin/R --no-restore
2013 Feb 14
0
Building a Package & using gWidgets
...nc <- function(x){ out <- x*2 return(out) } # Abstract representation of second usable function, takes settings & invokes internal functions generates results & saves as R object files. sim.func <- function(x){ ans <- int.func(x) ans2 <- ans-2 save(ans2, file="outtest") } With my package so far, using it is done like so after loading and attaching the package with library(): INPUT <- settings() fix(settings) # If you want to change from the defaults. sim.func(INPUT) Nothing needs returning from the simulation because it gets saved as an object to be r...