thank you, duncan. yikes. how about people on sane (sorry, mean linux or unix) systems... ;-). regards, /iaw
On 4/2/06, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 4/2/2006 9:34 PM, ivo welch wrote: > > dear R group: I have the probably fairly common problem that I would > > like to have one code.R file do different things if it is invoked from > > a symbolic link, which should be easy to uncover. > > > > $ ln -s code.R code-0.R > > $ ln -s code.R code-1.R > > $ R CMD BATCH code-1.R > > > > what needs to be in code-1.R to put code-1.r into a character vector? > > help appreciated. > > > > regards, /ivo welch > > > > > > PS : I read the past R-help posts on the subject, but apparently > > the older suggested solutions no longer work. (commandArgs() is not > > the answer, either.) And I did also not see it under the FAQ in the R > > programming section...and may I suggest this for the faq? > > I think the answer to this is platform dependent. In Windows, the > answer is: you can't. The command line gets eaten by Rcmd.exe and > isn't passed to R. > > Duncan Murdoch > ______________________________________________ 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