Skip to content
Prev 243882 / 398506 Next

How to get 'R' to talk BACK to other languages / scripts??

Hi Mike,
Is this what you want?

#!/bin/bash
myTest=$(Rscript testing.R.r)
echo "myTest contains"
echo $myTest

Note that testing.R.r will have to cat() or print() myResult (e.g, my
testing.R.r contains

myResult <- paste("Hello World")
cat(myResult)

Best,
Ista
On Fri, Dec 3, 2010 at 1:23 PM, Mike Williamson <this.is.mvw at gmail.com> wrote: