Re: [Rd] namespace crash on S3method("as.ff",function)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon, 5 Nov 2007 13:42:34 +0000 (GMT)

On Mon, 5 Nov 2007, "Jens Oehlschlägel" wrote:

> Dear all,
>
> I have defined a generic as.ff(x, ...) and a method as.ff.function(x, ...) which converts a standard R function x into a chunked version operating on large ff objects. Everything works fine, but when registering
>
> S3method("as.ff",function)
>
> in NAMESPACE, the installation fails with some kind of parsing error:
>
> adding build stamp to DESCRIPTION
> installing NAMESPACE file and metadata
> Fehler in parse(nsFile) : Unerwartetes ')' bei
> 348:
> 349: S3method("as.ff",function)
> Calls: <Anonymous> -> parseNamespaceFile -> parse
> Ausf³hrung angehalten
> make[2]: *** [nmspace] Error 1
> make[1]: *** [all] Error 2
> make: *** [pkg-ff] Error 2
> *** Installation of ff failed ***
>
> Is this a bug? Any ideas?

You need to quote "function". It falls under

   (Note that variable names may be quoted, and non-standard names such as    @code{[<-.fractions} must be.)

since reserved words cannot be standard names. But it could stand being spelt out in R-exts.

There are examples in package 'utils'.

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Mon 05 Nov 2007 - 13:46:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 05 Nov 2007 - 18:30:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.