ropensci / EDIutils

An API Client for the Environmental Data Initiative Repository
https://docs.ropensci.org/EDIutils/
Other
10 stars 2 forks source link

xml2df() drops null elements #37

Closed clnsmth closed 2 years ago

clnsmth commented 2 years ago

The internal function xml2df() drops null elements from the returned data.frame. The expected result is a data.frame with null elements filled with NA. This issue affects several EDItuils functions. See:

https://github.com/EDIorg/EDIutils/blob/5ee913a63c4127938ddadcf7bdbfbd622796fdf3/R/utilities.R#L426

clnsmth commented 2 years ago

Turns out this is an issue in one of the PASTA REST API methods, not xml2df(). See: https://github.com/PASTAplus/PASTA/issues/76

A patch can be applied to EDIutils or a global fix at the repository level.

clnsmth commented 2 years ago

This has been fixed at the repository level