Closed yvanlebras closed 4 years ago
By trying the following chunk of codes, I detected the issue seem to be in count.fields()
used in validate_arguments
. Without the quote argument, the table
returns loads of inconsistent-length read lines.
> cf <- count.fields("~/dataPackagesOutput/occurrence.txt", get.delim("~/dataPackagesOutput/occurrence.txt"), quote = c("\"","\'"))
> as.data.frame(table(cf))
cf Freq
1 107 1
2 125 22
3 237 10158
Dear EDI,
Using EML Assembly Line through Metashark, @earnaud , I have an issue trying importing a tab separated datafile:
This file is an occurence.txt file coming from GBIF and apparently, the number of delimiters, so \t, is ok looking at the content of the file through a text editor, notably on lines 140, 141, 142. occurrence.txt
Not fully sure detect_errors error message is from EDIutils, but it seems to me that it come from R/validate_fields.R isn't it ?