[R] Bug in the triMat( ) function in the deldir package.

Rolf Turner r.turner at auckland.ac.nz
Sat Apr 22 23:45:13 CEST 2017

Yesterday Jay Call drew to my attention the fact that the triMat() 
function was giving wrong answers in some instances.  Wrong answers 
occur if the union of three contiguous Delaunay triangles happens to 
constitute another triangle.  This latter triangle appeared in the list 
of triangles produced by triMat() but is *not* itself a Delaunay 
triangle (and hence should not appear in the list).

I have swatted this bug (at least I think/hope that I have!) and have 
uploaded a revised version of deldir (version 0.1-14) to CRAN.  The 
revision contains other amendments and innovations in addition to this 
bug fix.

If you have in the past used triMat(), you should check your results 
from that usage against those produced by the triMat() function from the 
revised version.

Sorry 'bout that.


Rolf Turner

Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

More information about the R-help mailing list