Message-ID: <38b9f0350904010100l2f717da3ye78f8abb58bd85a@mail.gmail.com>
Date: 2009-04-01T08:00:16Z
From: ronggui
Subject: How can I use R through command line?
In-Reply-To: <a754dce1-d112-436e-93ed-302ab84c325a@s22g2000prg.googlegroups.com>
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
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.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: http://asrr.r-forge.r-project.org/rghuang.html