Skip to content
Prev 6534 / 15075 Next

Problems loading data file in Mac--How do you specify path name

On Nov 4, 2009, at 7:00 PM, Duncan Murdoch wrote:

            
That would work, but....

On the Mac the easiest way to get a correct path (at least in  
Urbanek's GUI version) is to drag and drop. In a console window, set  
up your read function as:

test <- read.table(file="", header = TRUE)

and then activate a Finder window with your target file, and click- 
hold-drag that file so that the cursor is between the quotes and  
release. A properly constructed reference to the file will appear. Mac- 
magic ala Urbanek!