Suppose I have written a R program and saved it in test.R . How can I call the program in the command line?
you can use source() to Read R Code from a File. 2009/4/1 minben <minbenh at gmail.com>:> ?Suppose I have written a R program and saved it in test.R . How can I > call the program in the command line? > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: asrr.r-forge.r-project.org/rghuang.html
minben <minbenh <at> gmail.com> writes:> > Suppose I have written a R program and saved it in test.R . How can I > call the program in the command line?Assuming Windows (might work under linux) rterm --vanilla --no-save < myrfile.r Dieter