From Waclaw.Marcin.Kusnierczyk at idi.ntnu.no  Tue Jun  2 20:47:20 2009
From: Waclaw.Marcin.Kusnierczyk at idi.ntnu.no (Wacek Kusnierczyk)
Date: Tue, 02 Jun 2009 20:47:20 +0200
Subject: [Rd] setdiff bizarre
In-Reply-To: <d8ad40b50906021023u406a77bfke070c8b925385723@mail.gmail.com>
References: <a695148b0905292135g1c1bee38xb70687a43ccaa934@mail.gmail.com>	<8b356f880905300550y39c76b02h2d908b1c6b0ef0e4@mail.gmail.com>	<a695148b0905300721x6e291e0bg66fefcf0931f2ce2@mail.gmail.com>	<8b356f880905300859i5ba5800q5594bfce659373fe@mail.gmail.com>	<8b356f880906020813w6b7075b6g411fc177b508709e@mail.gmail.com>
	<d8ad40b50906021023u406a77bfke070c8b925385723@mail.gmail.com>
Message-ID: <4A2573B8.8010606@idi.ntnu.no>

Barry Rowlingson wrote:

[...]

> I suspect it's using 'deparse()' to get the character representation.
> This function is mentioned in ?as.character, but as.character.default
> disappears into the infernal .Internal and I don't have time to chase
> source code - it's sunny outside!
>   

on the side, as.character triggers do_ascharacter, which in turn calls
DispatchOrEval, a function with the following beautiful comment:

"To call this an ugly hack would be to insult all existing ugly hacks at
large in the world."

a fortune?

vQ



[Rd] setdiff bizarre
Wacek Kusnierczyk