Trying this solution https://github.com/ropensci/RNeXML/issues/61