[R] Scan or read.table bug in R?

Duncan Murdoch murdoch at stats.uwo.ca
Tue Nov 7 14:58:33 CET 2006


Please post general R help questions to the R-help mailing list.

The likely problem here is that your file isn't in the current working 
directory.  To avoid this problem, I often use the file.choose() 
function to obtain a full path to the file, rather than typing the name 
out myself.

Duncan Murdoch

On 11/7/2006 8:48 AM, Satya Pimputkar wrote:
> Hello R-Team,
> 
>  
> 
> I’m a student of the University of Zurich studing Finances.
> 
> I just installed R for Windows (2.4.0) on my tablet pc (windows pro tablet edition).
> 
> After reboot I ran the program and changed the directory to my used folder.
> 
> Using a .txt file named “a.txt” and stored in the entered directory I tried the function:
> 
>  
> 
> scan(“a.txt”) and read.table(“a.txt”)
> 
>  
> 
> Following error report encountered:
> 
>  
> 
> scann("a.txt")
> 
> Fehler in file(file, "r") : kann Verbindung nicht öffnen
> 
> Zusätzlich: Warning message:
> 
> kann Datei 'a.txt' nicht öffnen. Grund 'No such file or directory'
> 
>  
> 
> Where is the problem? 
> 
> I tried, reinstalling, turing off virus scan/firewall, run program alone w/o other applications
> behind.
> 
>  
> 
> Please help me out, our local “R-professionals” including the doc can’t fix this problem
> 
> Thank you in advance!
> 
>  
> 
> Kind regards
> 
> Satya Pimputkar
> 
>



More information about the R-help mailing list