[R] passing args to R CMD BATCH in win 2000

2007-08-01 Thread Stephen . Bond
Hello and sorry to bother. Please help. I searched the archives but could not find out why --args is being ignored on Windows 2000. I try R CMD BATCH --slave 11.R 11.Rout --args 12 and 11.R has x=commandArgs(trail=T) print(x) a=x[length(x)] write.csv(a,file=13.out) q(no) the argument is not

Re: [R] help with tryCatch

2007-02-15 Thread Stephen Bond
, Henrik Bengtsson [EMAIL PROTECTED] wrote: Put the for loop outside the tryCatch(). /H On 2/13/07, Stephen Bond [EMAIL PROTECTED] wrote: Henrik, thank you for the reference. Can you please tell me why the following does not work? vec=c(hdfhjfd,jdhfhjfg)# non-existent file names

Re: [R] help with tryCatch

2007-02-13 Thread Stephen Bond
in err. Thank you Stephen Henrik Bengtsson wrote: Hi, google R tryCatch example and you'll find: http://www.maths.lth.se/help/R/ExceptionHandlingInR/ Hope this helps Henrik On 2/13/07, Stephen Bond [EMAIL PROTECTED] wrote: Henrik, I had looked at tryCatch before posting the question

[R] help with tryCatch

2007-02-12 Thread Stephen Bond
Could smb please help with try-catch encapsulating a function for downloading. Let's say I have a character vector of symbols and want to download each one and surround by try and catch to be safe # get.hist.quote() is in library(tseries), but the question does not depend on it, I could be