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

From: David Epstein <David.Epstein_at_warwick.ac.uk>
Date: Sun, 20 Jul 2008 12:19:07 +0100


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. Received on Sun 20 Jul 2008 - 11:22:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 20 Jul 2008 - 12:31:59 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive