Skip to content
Prev 243891 / 398506 Next

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

see below.
On Fri, Dec 3, 2010 at 3:23 PM, Mike Williamson <this.is.mvw at gmail.com> wrote:
Look at this example:

kjetil at kjetil:~$ R --vanilla < test.R > outtest.txt
kjetil at kjetil:~$ cat outtest.txt

R version 2.13.0 Under development (unstable) (2010-11-26 r53672)
Copyright (C) 2010 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-unknown-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
3 10 9 7 2 4 6 5 1 8
kjetil at kjetil:~$ cat test.R
 test <- 1:10
 test <- sample(test)
 cat(file=stdout(), test, "\n")
q("no")

kjetil at kjetil:~$