Running ‘test-all.R’ [13s/77s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > library(geometa)
  Loading ISO 19139 XML schemas...
  Loading ISO 19115 codelists...
  Warning message:
  In XML::xmlParse(xsdFile, isSchema = TRUE, xinclude = TRUE, error = function(msg,  :
    NULL value for external reference
  > test_check("geometa")
  ── 1. Error: encoding (@test_ISOBaseBoolean.R#16)  ─────────────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseBoolean.R:16
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 2. Error: encoding with coercing (@test_ISOBaseBoolean.R#33)  ───────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseBoolean.R:33
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 3. Error: encoding (@test_ISOBaseCharacterString.R#16)  ─────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseCharacterString.R:16
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 4. Error: encoding (@test_ISOBaseDate.R#16)  ────────────────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseDate.R:16
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 5. Error: encoding (@test_ISOBaseDateTime.R#16)  ────────────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseDateTime.R:16
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 6. Error: encoding (@test_ISOBaseDecimal.R#16)  ─────────────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseDecimal.R:16
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 7. Error: encoding (@test_ISOBaseInteger.R#15)  ─────────────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseInteger.R:15
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 8. Error: encoding with coercing (@test_ISOBaseInteger.R#31)  ───────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseInteger.R:31
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 9. Error: encoding (@test_ISOBaseReal.R#16)  ────────────────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOBaseReal.R:16
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 10. Error: encoding (@test_ISODate.R#18)  ───────────────────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISODate.R:18
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 11. Error: encoding (@test_ISOFileName.R#14)  ───────────────────────────────
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOFileName.R:14
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ── 12. Error: encoding - i18n - ZH (@test_ISOLocalisedCharacterString.R#96)  ───
  trying to get slot "ref" from an object of a basic class ("NULL") with no slots
  1: md$encode() at testthat/test_ISOLocalisedCharacterString.R:96
  2: self$validate(xml = out, strict = strict, inspire = inspire)
  3: xmlSchemaValidate(xsd, xml)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 22 | SKIPPED: 276 | WARNINGS: 0 | FAILED: 12 ]
  1. Error: encoding (@test_ISOBaseBoolean.R#16) 
  2. Error: encoding with coercing (@test_ISOBaseBoolean.R#33) 
  3. Error: encoding (@test_ISOBaseCharacterString.R#16) 
  4. Error: encoding (@test_ISOBaseDate.R#16) 
  5. Error: encoding (@test_ISOBaseDateTime.R#16) 
  6. Error: encoding (@test_ISOBaseDecimal.R#16) 
  7. Error: encoding (@test_ISOBaseInteger.R#15) 
  8. Error: encoding with coercing (@test_ISOBaseInteger.R#31) 
  9. Error: encoding (@test_ISOBaseReal.R#16) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted