[R] fix(fix)

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Aug 29 00:15:57 CEST 2002


Roger Koenker <roger at ysidro.econ.uiuc.edu> writes:

> About 2 percent of the time I use fix() to edit a function that is
> sitting in .RData I get the response:

In the workspace, you mean? You can't edit things in .RData directly.
 
> > fix(qss)
> Error in edit(name, file, editor) : problem with running editor vi
> 
> when I try to close the editing session.  I used to think that these
> were always cases where there was some syntactical error with the
> edited file, but this is not the case.  I realize that one surefire
> way to avoid this problem is to stop using fix()...but if there are
> other suggestions, I would be happy to hear them.
> 
> This is solaris 2.8,  R1.5.0 with vi as the editor.

The error message means that the editor returned a non-zero error
code, so you just have to make it stop doing that... Not sure why that
would happen with vi/Sol8 (out of disk space? file locked? or just vi
returning random value?)

You could kill the problem by having your own editor script, something
like

#!/bin/sh
vi $*
true

and then use that for your editor. However, you'ld also be killing off
indications of real system problems...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list