[Rd] type of list elements in .Call

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jan 31 16:16:25 CET 2005


On Mon, 31 Jan 2005, Faheem Mitha wrote:

> [Forwarding to r-devel.]

>
> Dear People,
>
> Here is something I do not understand. Consider

...

This is covered, copiously, in the examples in `Writing R Extensions'.
Hint: search for coerceVector.

> as I would expect. I thought that if the vectors in the list could be 
> regarded as integer vectors, they would be coerced appropriately, but 
> apparently not. Is there any way I can tell R to regard them as integer 
> vectors?

Reading the manual would have corrected your thinking.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list