[R] Question about compatibility

Patrick Burns pburns at pburns.seanet.com
Sat Nov 23 19:45:20 CET 2013


If you are anything like me, then the main
thing that you could do to win the game is
to type the name of the file correctly.

Given that is a near impossibility for me,
when I'm on Windows I use 'file.choose' to
get the correct name.  Your command would
look like:

example=read.table(file=file.choose(), header=TRUE,sep=",")

The other likely problem is that you and
R are not agreeing on what the working
directory is.  You can see what R thinks it
is by typing:

getwd()

You can change what it thinks it is with
the 'setwd' function (or via the menu --
the file menu in Rgui or session menu in
RStudio).

Welcome to the R world.

Pat


On 23/11/2013 16:49, Juan Manuel Reyes S wrote:
> Dear R- project
>
> I am beginning to work in R. When I was trying to read data for external
> files with command read.table  in R, R was reporting me:
>
>   example=read.table(file="example.text", header=TRUE,sep=",")
>
> Error in file(file, "rt") : It is not posible to open connection
> Además: Mensajes de aviso perdidos
> In file(file, "rt") :
>   It is not posible to open the file  'example.text': No such file or
> directory
>
> I am using office 365 and my computer has Windows 8.
>
> What can I do?
>
> Thank you members of R- project
>
> Juan Manuel
>
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Patrick Burns
pburns at pburns.seanet.com
twitter: @burnsstat @portfolioprobe
http://www.portfolioprobe.com/blog
http://www.burns-stat.com
(home of:
  'Impatient R'
  'The R Inferno'
  'Tao Te Programming')



More information about the R-help mailing list