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: ##R.sh #!/bin/bash export file="mydata" ## plot.R Sys.getenv("file") HTH, --sundar ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.