[R] Problem w/ source
dmurdoch at pair.com
Thu Jul 24 17:25:16 CEST 2003
On Thu, 24 Jul 2003 10:42:05 -0400, Peter Muhlberger
<peterm at andrew.cmu.edu> wrote :
>I'm trying to use the source command to run commands from a file. For
>instance: source("do.R"), where do.R is a file in the same directory in
>which I am running R.
>The contents of do.R are:
>After source("do.R"), all I see is:
>I'm using the X11 version of R for Mac OS X (downloadable binary). Does
>anyone know how to get source to work?
You probably want
source("do.R", echo = TRUE)
or maybe not; see ?source.
More information about the R-help