On 4/12/2006 12:40 PM, Fred J. wrote:> Dear R users
>
> I am having a problem "unable to open connection" and don't
know why.
> using debian testing, R Version 2.2.1
>
> fred at debian:~/R$ ls -l
> -rwxr-xr-x 1 fred fred 11599 2006-04-13 02:12 r.R
>
> ****************************************************************
> > getwd()
> [1] "/home/fred/R"
> > source("r.R")
> Error in file(file, "r") : unable to open connection
> In addition: Warning message:
> cannot open file 'data/pathtofile/041006', reason 'No such
file or directory'
> ****************************************************************
Does /home/fred/R/data/pathtofile/041006 exist, and do you have read
permission on it? It doesn't look like it, from the ls above.
Duncan Murdoch