[R] open script file from command line

Rolf Turner r.turner at auckland.ac.nz
Fri Feb 5 02:06:49 CET 2010


On 5/02/2010, at 1:53 PM, Wade Wall wrote:

> Hi all,
> 
> Is there a function to open a script file from the command line?  I have
> several students who are Mac users and when they open up a script file it
> does not send commands to the console, and unfortunately I don't know how to
> solve this problem since I am not a Mac user.
> 
> I have looked over the FAQ for Mac users, but didn't see a reference to the
> problem.
> 
> I think they are both using OS X.
> 
> Thanks for any help.


It's not clear to me what you are actually asking, since you (like 99.999%
of people in the world, unfortunately) use the utterly stupid terminology
``open'', that the utterly stupid point-and-click interfaces to which everyone
except me seems to be addicted, foists upon us.  The word ``open'' is ambiguous.

The script file contains code (R code).  ``Opening'' the file could mean
*editing* that code (with some text editor).  But since you talk about
``sending the commands to the console'' I suspect that by ``opening'' you
mean persuading R to execute the commands contained in the script.

In which case see ?source.

One can also ``send commands to the console'' via copy-and-paste.

	cheers,

		Rolf Turner
######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal 
www.marshalsoftware.com
######################################################################



More information about the R-help mailing list