Skip to content

problems with formals and get (PR#151)

1 message · Peter Dalgaard

#
jlindsey@alpha.luc.ac.be writes:
This version of formals seems to work better:

function (fun = sys.function(sys.parent())) 
{
    if (is.character(fun)) 
        fun <- get(fun, mode = "function", envir = sys.frame(sys.parent()))
    .Internal(formals(fun))
}
This is a bug, originating in sys.call:
xx()
xx(a = , b = )