Thanks for useful replies. It is working now. I was typing only read.table(/Users/username/Desktop/test.txt/) without surrounding the filename with quotes. It works when i use it as read.table('/Users/khan_awais77/Desktop/test2.txt').
Cheers Awais77 wrote: > > Hi, > If any body can help me regarding a basic problem using R? > I am starting with R and I have problem in loading my file. File is on > Desktop of my MAC and I use code as follows to access it > /Users/username/Desktop/test.txt/ > > It always gives me Syntax error message. > > Thanks for your help > > > > > -- View this message in context: http://www.nabble.com/Loading-file-in-MAC-Syntax-Error-tp25244312p25248604.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.