[R] Reading file

David Winsemius dwinsemius at comcast.net
Wed Jun 2 05:01:34 CEST 2010


On Jun 1, 2010, at 3:19 PM, Robert Tsutakawa wrote:

> I am trying to read a source program into a mac pro laptop, which  
> uses Snow Leopard.  R is unable to find the file containing my  
> source program.  I'm using the function  source(" file name").  I  
> need some examples or detailed instructions.  I have no problem  
> reading the file using PC.
> Bob

Just drag the file from a Finder window to the console to get the full  
path name.

A cross-platform solution would be file.choose()

-- 
David



More information about the R-help mailing list