First, here's the specific bug I have. Later I'll say why I care.
ls(zappo)
Error in try(name) : object zappo not found
# good.
f = function(zappo) { function(y) zappo + y }
g = f(1)
g(1)
[1] 2
formals(g)
$y
formals(g)$y
formals(g)$y = 2
g
function (y = 2)
zappo + y
g(1)
Ah, it's fixed in 2.4.0. I'll work around it.
-Alex
On 13 Oct 2006, at 11:19, Alex Brown wrote:
First, here's the specific bug I have. Later I'll say why I care.
ls(zappo)
Error in try(name) : object zappo not found
# good.
f = function(zappo) { function(y) zappo + y }
g = f(1)
g(1)
If you are just modifying an S3 method in a package you may not need to reinsert
the method into the package since UseMethod first looks into the
caller environment
for methods anyways and only second does it look for methods in the
package. Thus:
HTML.data.frame - R2HTML:::HTML.data.frame