This has been fixed in 2.3.1. See
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/76657.html
or
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/76953.html
Duncan Murdoch
On 6/5/2006 3:19 PM, Richard Valliant wrote:> I have encountered an odd problem in editing a function. I found no
> mention of this in the archives but may have missed something. I'm
using
> Version 2.3.0 (2006-04-24). The problem is that after creating a
> function with fix, making some typos and correcting them, my function
> loses contact with everything in the search path except (apparently)
> package:base. Here is an example: > fix(tmp)> tmpfunction (x) {
> var(x)}> tmp(1:5)[1] 2.5> fix(tmp) # Typos (,/ at end of var(x) )
were
> intentionally introduced# line is now: var(x),/ Error in edit(name,
> file, title, editor) : an error occurred on line 3 use a command
> like x <- edit() to recover> tmp <- edit() # Typos corrected but
new
> ones introduced# Line is now var(x)**** Error in edit(name, file, title,
> editor) : an error occurred on line 3 use a command like x <-
> edit() to recover> tmp <- edit() # Typos fixed.# List the function.
Note
> the <environment: base> at end. Not there before. > tmpfunction
(x) {
> var(x)}<environment: base>> tmp(1:5)Error in tmp(1:5) : could
not
> find function "var" TIARichard
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html