[R] filename

From: Lars <lars.claussen_at_pik-potsdam.de>
Date: Tue 10 May 2005 - 19:29:10 EST


Hey,

I'm generating a .jpeg file for a web application passing parameters to R via cgi. R gets the parameters by using commandArgs, which are passed to a variable named j and z

j<-commandArgs()[3]
z<-commandArgs()[4]

Later I want to use the characters strings of the argument which the variables are holding for my filename, e.g.:

jpeg(file="d:/data/images/jz.jpeg",...)

i tried to use paste and as.character, but neither worked out the way i want it to.

thanks for any advice, Lars Claussen



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 10 19:33:18 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:40 EST