[R] Shell Bash with R

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Wed Oct 31 23:37:01 CET 2007

Edwin Sendjaja said the following on 10/31/2007 3:26 PM:
> Hello,
> I try to write a bash skript and I want to use the variables from my
> bash skript into R. Ist that possible?
> My bash skript creates  lots of  *.data files. I want forward these
> files directly into R (in x.data.bz2), so that R creates a few data
> automatically also in PDF.

<irreproducible example snipped>

When I do this, I export a variable in bash using 'export' then import 
the variable in R using Sys.getenv:

export file="mydata"

## plot.R



More information about the R-help mailing list