library(camtrapdp)
#>
#> Attaching package: 'camtrapdp'
#> The following object is masked from 'package:base':
#>
#> contributors
library(EML)
#>
#> Attaching package: 'EML'
#> The following object is masked from 'package:camtrapdp':
#>
#> write_eml
x <- example_dataset()
eml <- camtrapdp::write_eml(x, ".")
#>
#> ── Writing file ──
#>
#> • './eml.xml'
EML::eml_validate(eml)
#> [1] FALSE
#> attr(,"errors")
#> [1] "Element 'personnel': Missing child element(s). Expected is one of ( userId, role )."
Created on 2026-02-24 with reprex v2.1.1
EML requires that when element project is available, that:
- it has at least 1 child element
project personnel
project personnel must have child elements userId and role
role of project personnel is missing in camtrapdp::write_eml() .
Created on 2026-02-24 with reprex v2.1.1
EML requires that when element
projectis available, that:project personnelproject personnelmust have child elementsuserIdandroleroleofproject personnelis missing incamtrapdp::write_eml().