New versions of R packages

Posted 16 November 2022 by Laura Marshall

We are pleased to announce the imminent release of new versions of our R packages Distance and mrds. The information below will be particularly relevant to users of dht2. We recommend all users of these packages update to the newest versions.

A full list of changes and updates is given below.

One important change is that the dht2 function in Distance now requires that the data contains an object column. If your data is missing this column it can easily be added as follows:

distance_data$object <- NA
distance_data$object[!$distance)] <- 1:sum(!$distance))

This minor changes also affects some of our code example vignettes, available at We believe all the affected examples have now been updated.

Thanks to those who have made feature requests or reported issues. If you do find any problems, or want to suggest a new feature, please feel free to raise an issue at or in the github page for each package

Full list of changes and updates:


Changes in version 1.0.7 (accepted to CRAN 16/11/2022)


Changes in version 2.2.8 (submitted to on CRAN 16/11/2022)