sizespectrum / mizer

Multi-species size-based ecological modelling in R
https://sizespectrum.org/mizer
38 stars 43 forks source link

Deal better with column names when interaction matrix is read from .csv #263

Closed gustavdelius closed 2 years ago

gustavdelius commented 2 years ago

Problem: When the user reads an interaction matrix from a .csv file with read.csv() then the column names are run through make.names(). When that is then used in setInteraction() a warning is issued because the column names are not identical to the species names.

Solution: The test that leads to this warning should run the species names through make_names() before making the comparison.