[R] Help on programming

Scot W McNary smcnary at charm.net
Wed Nov 7 18:52:02 CET 2001



and if you add "echo=TRUE" and "verbose=TRUE" to the source statement you
get back a log of what commands you sent and diagnostics:

source("~/somedirectory/somefilewithcode.R", echo=TRUE, verbose=TRUE)

Typing

?source

gives yet more information.

Scot



--
  Scot W. McNary  email:smcnary at charm.net

On Wed, 7 Nov 2001, Bill Simpson wrote:

>
>
> On Wed, 7 Nov 2001, Bob Banks wrote:
>
> > I am a new user of R and would like a bit of advice.
> >
> > I wish to write a short program in R that I can call up when I want to run
> > it. How do I go about storing and recalling the particular code that I
> > write?
> There are different ways to do it.
> I usually write the code in a text file using some text editor. Then I do
> source("~/papers/file.r"). Then the functions in that file are available
> for use.
>
> Bill
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list