Error with morphol.disparity

6 views
Skip to first unread message

dave.a...@colby.edu

unread,
Oct 29, 2025, 5:28:28 PMOct 29
to geomorph R package
Hi everyone,

I wanted to ask if there is a solution to this error with `morphol.disparity` that appears with the example code.

```
data(plethodon)
Y.gpa <- gpagen(plethodon$land, print.progress = FALSE)    #GPA-alignment
gdf <- geomorph.data.frame(Y.gpa, species = plethodon$species,
                           site = plethodon$site)

# Morphological disparity without covariates, using overall mean
morphol.disparity(coords ~ 1, groups= ~ species * site, data = gdf,
                  print.progress = FALSE)
```

```
Error in La.svd(X, k, k) : a dimension is zero
```

I see that a problem with this function was discussed last year, but I run into this issue with the current CRAN (4.0.10) and development (4.0.10.999) versions.

Suggestions?

Many thanks. -- Geomorph is a wonderful tool, and the community support here is greatly appreciated!

Best,
Dave

Omar Mejía

unread,
Oct 29, 2025, 5:50:03 PMOct 29
to geomorph-...@googlegroups.com
Hi Dave,

Just run your code without a problem. I am using geomorph 4.0.1, rgl 1.3.24  and RRPP 2.1.2 in Rstudio 2022.02.3 and R 4.5.1

imagen.png


--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/geomorph-r-package/a7e8ce3e-5bce-435b-911e-ba5ea9463662n%40googlegroups.com.


--
Omar Mejía G
Laboratorio de Variación Biológica y Evolución
Departamento de Zoología
Escuela Nacional de Ciencias Biológicas-IPN

Adams, Dean [EEOB]

unread,
Oct 29, 2025, 6:34:19 PMOct 29
to geomorph R package
Dave,

Be sure to install both the latest version of geomorph ANS the latest version of RRPP from CRAN.  

When I do that the code works as intended.

Best, 

Dean
--
Dr. Dean C. Adams
Distinguished Professor
Director, Ecology and Evolutionary Biology Graduate Program
Department of Ecology, Evolution, and Organismal Biology
Iowa State University

From: geomorph-...@googlegroups.com <geomorph-...@googlegroups.com> on behalf of dave.a...@colby.edu <dave.a...@colby.edu>
Sent: Wednesday, October 29, 2025 4:28 PM
To: geomorph R package <geomorph-...@googlegroups.com>
Subject: [geomorph-r-package] Error with morphol.disparity
 

Mike Collyer

unread,
Oct 29, 2025, 6:43:52 PMOct 29
to geomorph-...@googlegroups.com
Dave,

You might also want to make sure the Matrix library is up to date.  I recommend, however, that you do not use the development version of RRPP if it is your tendency to install development versions from GitHub.  That version is currently volatile, thanks to ongoing work to fix an issue imposed by some base R functions.

Best,
Mike

morphol.disparity(coords ~ 1, groups = ~ species * site, data = gdf, 
                  print.progress = FALSE)
```

```
Error in La.svd(X, k, k) : a dimension is zero
```

I see that a problem with this function was discussed last year, but I run into this issue with the current CRAN (4.0.10) and development (4.0.10.999) versions.

Suggestions?

Many thanks. -- Geomorph is a wonderful tool, and the community support here is greatly appreciated!

Best,
Dave

-- 
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/geomorph-r-package/a7e8ce3e-5bce-435b-911e-ba5ea9463662n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.

Dave Angelini

unread,
Oct 29, 2025, 7:08:01 PMOct 29
to geomorph-...@googlegroups.com
The most recent CRAN version of RRPP solved the problem. — Apologies. I’ve generally kept on top of the geomorph + RRPP updates  as a known issue. — Just tried the dev version in case it offered a solution in this case. 
Many thanks!

Reply all
Reply to author
Forward
0 new messages