From jorismeys at gmail.com  Fri Nov 18 17:19:02 2011
From: jorismeys at gmail.com (Joris Meys)
Date: Fri, 18 Nov 2011 17:19:02 +0100
Subject: [Rd] round() ignores missing arguments if it is used inside
 another function where some arguments are missing.
In-Reply-To: <1321632620.17906.68.camel@prometheus.geog.ucl.ac.uk>
References: <CAO1zAVaS6YN=7V7tciOpgDA98haDY3wPYyuQt-cxkcsqXGsz=A@mail.gmail.com>
	<1321632620.17906.68.camel@prometheus.geog.ucl.ac.uk>
Message-ID: <CAO1zAVYLrLFLdPQkm8Wt=dTAoijqHP83a2tVRBaTXybPWNv8wA@mail.gmail.com>

On Fri, Nov 18, 2011 at 5:10 PM, Gavin Simpson <gavin.simpson at ucl.ac.uk> wrote:
>
> round is indicated to not evaluate its arguments. I don't follow the C
> code well enough to know if it should be catching the missing argument
> further on - it must be because it is falling back to the default, but
> the above explains that the not evaluating arguments is intended.
>
> G

So if I understand it right, the y argument is not evaluated in the
fun2 function but deeper in the C code. that explains the lack of the
error message, thanks! I keep on learning every day.
Cheers

Joris

-- 
Joris Meys
Statistical consultant

Ghent University
Faculty of Bioscience Engineering
Department of Mathematical Modelling, Statistics and Bio-Informatics

tel : +32 9 264 59 87
Joris.Meys at Ugent.be
-------------------------------
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php



[Rd] round() ignores missing arguments if it is used inside another function where some arguments are missing.
Joris Meys