Closed jarioksa closed 6 months ago
isopam::isopam
relied on row names in allocating observations to classes, but dimension names were lost in C code do_wcentre
(and hence in vegan::wcmdscale
and vegan::isomap
). Therefore classifications vectors in isopam
became NULL
and isopam
failed. The culprit was not the bisected commit, but the loss of dimension names only became apparent after the fix in that commit.
vegan release candidate breaks
isopam::isopam
, andexample(isopam)
gives:Key information here is that it tries to partition 0 groups in which case
spl[j]
isNULL
giving error inif()
.I have bisected this to commit 6986d297617 which seems to be completely unrelated change in C function
wcentre
. The link to this commit seems to beisopam::isopam
→vegan::isomap
→vegan::wcmdscale
→vegan:::do_wcentre
.I have no idea what is happening here and how this could harm
isopam::isopam
, but currently this blocks vegan release. Neithervegan::isomap
norvegan::wcmdscale
report any problems and behave quite normally, but theisomap::isomap
fails in finding partitions. Neither I found any differences in outputs of these vegan functions between 2.6-4 and the release candidate.