Closed peterdesmet closed 1 year ago
@damianooldoni I added one more commit with changes, please review. The rationale is:
If a Camtrap DP 0.1.6 dataset, then:
taxonID
taxonID
(required field)taxonID.x
and taxonID.y
taxonID.y
(from taxonomy), rename and drop the taxonID.x
If a Camtrap DP 1.0 dataset, then:
taxonID
(because this is before conversion)taxonID
taxonID
or no taxonID
taxonID
: https://github.com/inbo/camtraptor/blob/545f72f6b19ca23c22839646feb54970206a2966/R/zzz.R#L817
This PR fixes two issues I encountered when running
write_eml()
on a Camtrap DP 1.0 version of the entire MICA dataset.package$sources
topackage$platform
:write_eml()
couldn't findplatform$path
before because only the title was copied.