From hpages at fhcrc.org  Thu Apr 25 01:15:15 2013
From: hpages at fhcrc.org (=?windows-1252?Q?Herv=E9_Pag=E8s?=)
Date: Wed, 24 Apr 2013 16:15:15 -0700
Subject: [Rd] is.vector(as.vector(x, m), m) not always TRUE
In-Reply-To: <CD57D592-B6D0-42F4-B320-22981B642407@gmail.com>
References: <51771DDA.3040403@fhcrc.org>
	<6BC93B8B-183D-47BB-9910-C14418B108DE@gmail.com>
	<CD57D592-B6D0-42F4-B320-22981B642407@gmail.com>
Message-ID: <51786783.1010409@fhcrc.org>

On 04/24/2013 09:02 AM, peter dalgaard wrote:
> This is now fixed in R-devel (never actually bit anyone, did it?)

Thanks for fixing... before someone gets bitten :-)

as.vector() just made it into the BiocGenerics package, and the man
page for BiocGenerics::as.vector redirects the reader to the man page
for base::as.vector for the conventions that writers of methods for
"as.vector" should follow. Having base::as.vector actually follow
those conventions increases the chances that writers of "as.vector"
methods will follow them too, which is good.

Cheers,
H.


>
> -pd
>
> On Apr 24, 2013, at 08:11 , peter dalgaard wrote:
>
>>>>
>>>> is.vector(as.vector("a", "name"), "name")
>>> [1] FALSE
>>>
>>> Mmmh, the default method itself doesn't seem to follow its own
>>> conventions :-/
>>>
>>
>> Looks like there should be a straightforward fix, since
>>
>>> is.vector(as.vector("a", "name"), "symbol")
>> [1] TRUE
>>
>> so it is just a matter of implementing "name" as synomyous with "symbol".
>

-- 
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fhcrc.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



[Rd] is.vector(as.vector(x, m), m) not always TRUE
=?windows-1252?Q?Herv=E9_Pag=E8s?=