[R] Error in edit(name,file,title,editor)

jim holtman jholtman at gmail.com
Sun Jul 20 13:44:18 CEST 2008

Make sure you are in the right directory; you can also use the full
path names.  It is basically saying it can not find the file.  Do
'list.files()' to see what is addressable in whatever directory you
are in.

On Sun, Jul 20, 2008 at 7:19 AM, David Epstein
<David.Epstein at warwick.ac.uk> wrote:
> Can anyone help me with the following attempt to use an external editor from
> within R
>> vi(file="p286.R")
> Error in edit(name, file, title, editor) : unable to open file to read
>> edit(file="p286.R")
> Error in edit(name, file, title, editor) : unable to open file to read
> I have only recently re-started trying to learn R. (I tried before but
> failed.)
> I am working with a Mac MacOsX 10.4.11. I have R 2.7.1 GUI 1.25 (5166) which
> is the Cocoa version of R.
> I have been reading Peter Dalgaard's book, which is very helpful, and I have
> not met any errors so far, so I don't understand why I should suddenly hit
> this one.
> Since "edit" and "vi" appear to be in the utils package, I did
>> library(utils)
> to which I got a null response.
> I have searched the R-help-archives for the error message, and have not
> found it.
> I suppose I could use the function source(), but I haven't tried this.
> Thanks for any help
> David Epstein
> ______________________________________________
> 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.

Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

More information about the R-help mailing list