[Rd] DESCRIPTION file: Space after colon mandatory?

2016-03-29 Thread Kirill Müller
According to R-exts, DESCRIPTION is a DCF variant, and " Fields start with an ASCII name immediately followed by a colon: the value starts after the colon and a space." However, according to the linked https://www.debian.org/doc/debian-policy/ch-controlfields.html, horizontal space before and a

Re: [Rd] body(NULL) <- something; ditto formals() -- should not work

2016-03-29 Thread Hervé Pagès
Hi, On 03/07/2016 09:26 AM, Martin Maechler wrote: I'm proposing to signal an error (from R >= 3.3.0) in such examples -- which do "work" in R 3.2.x and earlier : f <- NULL; body(f) <- quote(sin(a+1)); f function () sin(a + 1) This works because formals() (the getter) works on things that