Closed thoree closed 4 years ago
Thanks again (sorry for closing the previous issue - feel free to re-open when issues are closely related!)
This was caused by missing "Gender" fields in the DVI section in the old file. I've safeguarded against this now, so the two versions are the same:
library(forrel)
#> Loading required package: pedtools
old = readFam("http://familias.name/BookKEP/Solution3_5.fam", verbose = F)
new = readFam("http://familias.name/BookKEP/Solution3_5-3.2.9.fam", verbose = F)
all.equal(old, new)
#> [1] TRUE
Created on 2020-02-12 by the reprex package (v0.3.0)
Great!
Previous example now runs. Here's an example probably best ignored. readFam fails for an old version of Familias (3.1.9), but works if the file is saved as most recent Familias version (3.2.9). Here are the runs in turn:
Created on 2020-02-12 by the reprex package (v0.3.0)
Created on 2020-02-12 by the reprex package (v0.3.0)
Created on 2020-02-12 by the reprex package (v0.3.0)