[R-SIG-Mac] import data Mac OS

Ben Bolker bbolker at gmail.com
Mon May 2 15:33:16 CEST 2011


On 05/02/2011 09:28 AM, Thor Jensen wrote:
> Hello,
> 
> I am unable to write a pathway to .csv files saved on my computer.  I
> can get this to work on a windows machine, but the mac returns a
> message saying the file does not exist.  Any tips on how to import
> data on mac's?  For example, the below line was unsuccesful.
> read.csv(file="Macintosh HD:Users:ThorJ:Desktop:heightweight.csv"
> 
> Many thanks,
> 
> Thor
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

   Try working your way to the file interactively within R using

(fn <- file.choose())

  and see what R thinks the file is really called.



More information about the R-SIG-Mac mailing list