[R] unable to open connection

Duncan Murdoch murdoch at stats.uwo.ca
Wed Apr 12 20:54:09 CEST 2006


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




More information about the R-help mailing list