[R] can't find "daphnia.txt" and others while working through Crawley's R-Book

David Winsemius dwinsemius at comcast.net
Thu Apr 15 18:28:54 CEST 2010


On Apr 15, 2010, at 11:42 AM, David Hardie wrote:

>
> I have a feeling that this is an embarassingly simple fix, but I've  
> been at it for most of the morning and can't get things figured out.
>
> I'm trying to work through some examples in Crawley's "The R Book".   
> I have installed packages and libraries as described in the book,  
> but when I try, for example:
>
> data<-read.table("c:\\temp\\daphnia.txt", header=T)
>
>
> I get:
>
> Error in file(file, "rt") : cannot open the connection
> In addition: Warning message:
> In file(file, "rt") :
> cannot open file 'c:\temp\daphnia.txt': No such file or directory
>
>
> There is nothing in my c:\temp folder, so I'm not suprised that it  
> doesn't work, but I can't for the life of me figure out which  
> package or library I will need to gain access to this and other data  
> files used in this book.

This would appear to be more a problem with you lack of understanding  
regarding the file management utilities of Windows. In Linux or a Mac  
you could use the locate function to track down where the file ended  
up, but surely whatever Windows version you have allows such searching.

-- 
David.
>
>
>
> Thanks in advance,
>
> -Dave
> 		 	   	


David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list