Skip to content
Prev 26578 / 63424 Next

namespace crash on S3method("as.ff",function)

On 11/5/2007 7:41 AM, Jens Oehlschl?gel wrote:
"function" is a reserved keyword for the parser.  Even though you don't 
execute a NAMESPACE file, it's parsed by the standard parser, and that's 
causing the problem.  (You couldn't have a function call that looked 
like that without a parse error, either.)

I don't have time to explore this today, but what I'd do is try

S3method("as.ff", `function`)

or

S3method("as.ff","function")

first, and if those don't fix it and you don't get a better suggestion, 
then report this as a design bug.

Duncan Murdoch