Skip to content

camtrapdp::write_eml() does not create valid EML #206

Description

@sannegovaert
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() .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions