On this line, the comparison
header2 != "IND"
needs an index. In R > 4.3, it raises an error (list(message = "'length = 51253' in coercion to 'logical(1)'", call = header2 != "IND" && header2[2] != "SEX"))
https://github.com/diyabc/diyabcGUI/blame/f93fb3beace3fdcd6ac61b335a608057b03a03d8/R-pkg/R/43_data_read.R#L122