According to the manual, a R script can be run in as follows in linux. $ R > source("xy.R") Does this mean we have to type "R" first, and then within R, type: source("xy.R")? Is there other way to run xy.R, say $ R CMD SOURCE xy.R Is there any way to run R in background? Luk --------------------------------- Photo Books. You design it and we’ll bind it! [[alternative HTML version deleted]]
Try R CMD BATCH --help at the shell prompt. Andy From: luk> > According to the manual, a R script can be run in as follows in linux. > > $ R > > source("xy.R") > > Does this mean we have to type "R" first, and then within > R, type: source("xy.R")? > > Is there other way to run xy.R, say > > $ R CMD SOURCE xy.R > > Is there any way to run R in background? > > Luk > > > > --------------------------------- > > Photo Books. You design it and we'll bind it! > [[alternative HTML version deleted]] > >
Hi, look for BATCH in the manual. (The other friend is called "nohup" on unix) Detlef On Fri, 20 Jan 2006 13:53:05 -0800 (PST) luk <luk111111 at yahoo.com> wrote:> According to the manual, a R script can be run in as follows in linux. > > $ R > > source("xy.R") > > Does this mean we have to type "R" first, and then within R, type: source("xy.R")? > > Is there other way to run xy.R, say > > $ R CMD SOURCE xy.R > > Is there any way to run R in background? > > Luk > > > > --------------------------------- > > Photo Books. You design it and we伮抣l bind it! > [[alternative HTML version deleted]] > >