[R] R cannot find the path on my mac
macqueen1 at llnl.gov
Wed Apr 24 21:26:47 CEST 2013
The "why" is that you haven't got the path correct yet.
Assuming you are running R.app or R64.app (running the R Console),
one way to find the correct path is to type
Navigate to your file and choose it. It will then tell you the correct
You can also do things like
source( file.path( 'path.to.folder', 'filename' ) )
if you want to keep the folder name and the filename separate.
You could also open Terminal (in the Utilities folder) and type
find . -name filename
and it should tell you the path relative to your home folder. This assumes
that the file is somewhere below
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
On 4/24/13 8:46 AM, "Gitte Brinch Andersen" <GITTEBA at hum-gen.au.dk> wrote:
>I am really sorry for this probably quite simple question.
>I am new to R, and I am running a pipeline that has already been made.
>All I have to do is give the paths for different folders, where the
>pipeline can find the files with my data.
>But every time I try to run the pipeline it returns with the message,
>that it cannot find the file. And I really don't know why. I have found
>the path by going to the folder and finding the info about the folder,
>where the location of this is stated. I copy-paste this into the source
>The path for the folder is:
>When found with the "info about the folder":
>But I think it should be:
>as it is the folder 1.Normalization_raw_data where my data are in.
>I have tried both paths but it returns with this message every time:
>Fejl i file(filename, "r", encoding = encoding) :
> cannot open the connection
>In addition: Advarselsbesked:
>In file(filename, "r", encoding = encoding) :
> cannot open file '/Users/gban/Desktop/Methylation
>450K_pipeline_Nov2012release./SRC/loadMethylumi2.R': No such file or
>Do you have any idea why?
>I know this is probably more a question of how to type the path on a mac,
>than it is a question of how R works.
>But I am really frustrated about this, and thought it might be possible
>for you to help?
>Thank you in advance, and again sorry for the quite stupid question.
>Gitte Brinch Andersen
>E-mail: gitteba at hum-gen.au.dk
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help