[R] run R under DOS prompt
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Wed Feb 14 08:18:41 CET 2001
On Tue, 13 Feb 2001, Yu-Ling Wu wrote:
> I have a xxx.R file. In order to run this file, I have
> to go to R, and type -- source("xxx.R").
> Two questions:
> 1. How to run file xxx.R under DOS prompt instead of
> entering R environment?
If you mean the Windows command line when running R under Windows,
see the README: there is a program Rterm.exe. There is no version of R
that runs under DOS.
> 2. There are several functions in file xxx.R, how to
> pass the arguments
> to the function when I try to run this file via
> source() function (or under DOS mode)?
You call the functions with arguments in the file.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help