From murdoch.duncan at gmail.com  Sat Feb  7 00:22:35 2015
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 06 Feb 2015 18:22:35 -0500
Subject: [Rd] Documentation for reg.finalizer
In-Reply-To: <CANnL8goQYtEDsj7CX0p4DZUsOmH+pLsrzj=7L6H+HC5hrEFrOA@mail.gmail.com>
References: <CANnL8goQYtEDsj7CX0p4DZUsOmH+pLsrzj=7L6H+HC5hrEFrOA@mail.gmail.com>
Message-ID: <54D54CBB.7090800@gmail.com>

On 06/02/2015 3:46 PM, Tim Keitt wrote:
> Documentation says (emphasis mine):
> 
> "Registers an R function to be called upon garbage collection of
>      object OR (optionally) at the end of an R session."
> 
> Should this say "and" and not "or"?
> 
> THK
> 

No.  "Or" in English is in the context the "inclusive or", not the
"exclusive or".  The function will only be called once, either when the
object is garbage collected, or (if the option is selected) at the end
of the session.

Duncan Murdoch



[Rd] Documentation for reg.finalizer
Duncan Murdoch