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

From: David Epstein <David.Epstein_at_warwick.ac.uk>
Date: Sun, 20 Jul 2008 13:27:30 +0100

Thanks. The file didn't exist at the time I tried "edit", and that was my error.
David

On 20 Jul, 2008, at 12:44, jim holtman wrote:

> 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?



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 - 12:30:58 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 - 13:32:08 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