Running ‘testthat.R’ [0m/90m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RonFHIR)
  > 
  > test_check("RonFHIR")
  
  ── 1. Error: Read (@test-fhirClient.R#37)  ─────────────────────────────────────
  Operation was aborted by an application callback
  1: client$update(readLines("../testfiles/example_patient.json")) at testthat/test-fhirClient.R:37
  2: execUpdate(self, resource)
  3: putResource(self, resource)
  4: PUT(path, body = resource, content_type_json())
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Failure: Search (@test-fhirClient.R#46)  ─────────────────────────────────
  nrow(ron$entry) > 0 isn't true.
  
  ── 3. Failure: SearchById (@test-fhirClient.R#52)  ─────────────────────────────
  nrow(pat$entry) not equal to 1.
  target is NULL, current is numeric
  
  ── 4. Failure: SearchById (@test-fhirClient.R#53)  ─────────────────────────────
  pat$entry$resource$resourceType not equal to "Patient".
  target is NULL, current is character
  
  ── 5. Failure: SearchById (@test-fhirClient.R#54)  ─────────────────────────────
  pat$entry$resource$id not equal to "exampleR".
  target is NULL, current is character
  
  ── 6. Failure: SearchById (@test-fhirClient.R#55)  ─────────────────────────────
  pat$entry$resource$birthDate not equal to "1994-04-26".
  target is NULL, current is character
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 75 SKIPPED: 0 FAILED: 6
  1. Error: Read (@test-fhirClient.R#37) 
  2. Failure: Search (@test-fhirClient.R#46) 
  3. Failure: SearchById (@test-fhirClient.R#52) 
  4. Failure: SearchById (@test-fhirClient.R#53) 
  5. Failure: SearchById (@test-fhirClient.R#54) 
  6. Failure: SearchById (@test-fhirClient.R#55) 
  
  Error: testthat unit tests failed
  Execution halted