[R] File names for mac newby

William Michels wjm1 @end|ng |rom c@@@co|umb|@@edu
Tue Jan 21 19:13:07 CET 2020

Hi David,

Often on a Mac you can "right click" (or on a laptop--press down with
two fingers), and a pop-up will give you the option to "Copy File
Path". (You can also find this option in a Finder window under the
"Finder -> Services" menu bar) .This is the path you should use to
import your file into R.

There's also a R-Help mailing list for Mac users (R-SIG-Mac):

HTH, Bill.

W. Michels, Ph.D.

On Tue, Jan 21, 2020 at 9:38 AM David <parkhurs using indiana.edu> wrote:
> I moved to a mac a few months ago after years in windows, and I'm still
> learning basics.  I'm wanting to create a data frame based on a text
> file called HouseTemps.txt.  That's a file within one called house which
> is within one called ah.  That may further be in one called  Documents.
> I tried various lines like:
> temps <-
> read.table("c:\\Users\\DFP\\Documents\\ah\\house\\HouseTemps.txt",header=T,row.names=1)
> based on my windows DOS experience, but nothing I try works.  So my
> question is, what do complete file names look like in a mac?
> I tried Apple support, but they couldn't help me with R.
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

More information about the R-help mailing list