[Rd] Documentation for reg.finalizer

Duncan Murdoch murdoch.duncan at gmail.com
Sat Feb 7 00:22:35 CET 2015


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



More information about the R-devel mailing list