If a user reads in a genalex file with semicolons instead of commas, they will get the following error:
Error in if (nrow(gena) != ninds) { :
missing value where TRUE/FALSE needed
In addition: Warning message:
In read.genalex("genalex.csv") : NAs introduced by coercion
all.info contains the first two lines of the genalex file, which determines the checks for the number of samples, loci, and populations. If the user uses ; as a separator in the file, but does not specify sep = ";", then all.info remains a two-element vector and ninds becomes missing:
If a user reads in a genalex file with semicolons instead of commas, they will get the following error:
This happens in this block:
https://github.com/grunwaldlab/poppr/blob/94c745aa2e6a806a125f48b86f9c07d8b6ec95aa/R/file_handling.r#L213-L236
all.info
contains the first two lines of the genalex file, which determines the checks for the number of samples, loci, and populations. If the user uses;
as a separator in the file, but does not specifysep = ";"
, then all.info remains a two-element vector andninds
becomes missing: