ropensci / EML

Ecological Metadata Language interface for R: synthesis and integration of heterogenous data
https://docs.ropensci.org/EML
Other
97 stars 33 forks source link

Quote parsing issue #301

Closed jsta closed 4 years ago

jsta commented 4 years ago

If I run the README examples up to and including the Putting it all together chunk, I get an error upon running eml_validate:

> eml_validate(my_eml)
[1] FALSE
attr(,"errors")
[1] "Element 'quote': This element is not expected." "Element 'quote': This element is not expected."
[3] "Element 'quote': This element is not expected." "Element 'quote': This element is not expected."

The error no longer occurs if I strip the quotes out of inst/examples/hf205-methods.md

I am running the latest CRAN release (2.0.2)

amoeba commented 4 years ago

Hey @jsta thanks for the report. What's going on here isn't readily apparent to me. I can't reproduce this on my Mac or Windows 10 machines when I run the README. They're both on R 4.0 and EML 2.0.2. Because this also involves Pandoc, we might look at your version. I can't reproduce this with 2.7.2 (Windows) and 2.9.2.1 (Mac).

Could you share a devtools::session_info(), your Pandoc version, your operating system, and an XML-serialized copy of that my_eml object?

jsta commented 4 years ago

Well, I took the plunge upgrading to R 4.0 and I no longer see this error. :shrug:

amoeba commented 4 years ago

FWIW I also couldn't reproduce on R 3.6.3. Do let us know if you see it again and thanks for reporting.