Skip to content
Prev 18320 / 63424 Next

(PR#7495) Function Body / Formals Bug

_________________________________________________________________________=
______________

Note: This e-mail is subject to the disclaimer contained at the bottom of=
=20this message.
_________________________________________________________________________=
______________


Just a note on the reported bug; it seems to be related to having a NULL
function body.


# this works
function(a, b) a + b
function (a, b, c, d)=20
a + b


# this also works
function(a, b) invisible(NULL)
function (a, b, c, d)=20
invisible(NULL)


# this gives a funny result
function(a, b) NULL
function (a, b, c)=20



Note the body of f3 becomes empty in the last example (not even a NULL).
This is with R 2.2.0 for Windows.
--=20
Hong Ooi
Senior Research Analyst
Insurance Australia Group, 388 George St, Sydney NSW 2000
(02) 9292 1566


_________________________________________________________________________=
______________

The information transmitted in this message and its attachments (if any) =
is intended=20
only for the person or entity to which it is addressed.
The message may contain confidential and/or privileged material. Any revi=
ew,=20
retransmission, dissemination or other use of, or taking of any action in=
=20reliance=20
upon this information, by persons or entities other than the intended rec=
ipient is=20
prohibited.

If you have received this in error, please contact the sender and delete =
this e-mail=20
and associated material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose o=
r distribute=20
the information contained in this e-mail and any attached files, with the=
=20permission=20
of the sender.

This message has been scanned for viruses with Symantec Scan Engine and c=
leared by=20
MailMarshal.