Re: [R] Suppressing script commands in R console when executing long program

2009-09-19 Thread Steven Kang
Thanks all for your help! On Sat, Sep 19, 2009 at 2:05 AM, Ishwor wrote: > Hi Duncan > > >> You can try putting this in your Rprofile > >> options("keep.source=F") > >> > >> This will work in the R cmd but it will not work in the RGui > >> > > > > The syntax is wrong there: that should be optio

Re: [R] Suppressing script commands in R console when executing long program

2009-09-18 Thread Ishwor
Hi Duncan >> You can try putting this in your Rprofile >> options("keep.source=F") >> >> This will work in the R cmd but it will not work in the RGui >> > > The syntax is wrong there:  that should be options(keep.source=F).  But I > don't think it addresses either question. I was working from my

Re: [R] Suppressing script commands in R console when executing long program

2009-09-18 Thread Philipp Pagel
On Fri, Sep 18, 2009 at 12:59:16PM +0200, Philipp Pagel wrote: > > foo$B <- as.numeric(sub(',', '', as.character(foo$B))) Thinking about it some more, you should use gsub instead of sub here. Otherwise only the first occurrence of the thousands separator will be removed. cu Philipp --

Re: [R] Suppressing script commands in R console when executing long program

2009-09-18 Thread Philipp Pagel
On Fri, Sep 18, 2009 at 03:46:27PM +1000, Steven Kang wrote: > *Q1. Are there any way of suppressing the commands in the R console?* I think this has been answered already. > *Q2. Is R capable of reading numbers that are represented with 1,000 > separator commas?* I am not aware of an option to

Re: [R] Suppressing script commands in R console when executing long program

2009-09-18 Thread Duncan Murdoch
Ishwor wrote: Steve. Hi. I have a script composing of more than 1000 lines and would like suppress the R codes from the console when executing the script (to reduce the physical processing time) I have tried options(echo=T) but no luck.. *Q1. Are there any way of suppressing the commands

Re: [R] Suppressing script commands in R console when executing long program

2009-09-18 Thread Ishwor
Steve. Hi. > I have a script composing of more than 1000 lines and would like suppress > the R codes from the console when executing the script (to reduce the > physical processing time) > > I have tried options(echo=T) but no luck.. > > *Q1. Are there any way of suppressing the commands in the R

[R] Suppressing script commands in R console when executing long program

2009-09-17 Thread Steven Kang
Hi R users, I have a script composing of more than 1000 lines and would like suppress the R codes from the console when executing the script (to reduce the physical processing time) I have tried options(echo=T) but no luck.. *Q1. Are there any way of suppressing the commands in the R console?*