Running ‘testthat.R’ [55s/219s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(malariaAtlas)
  Loading required package: ggplot2
  > 
  > test_check("malariaAtlas")
  trying URL 'https://map.ox.ac.uk/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&outputFormat=shape-zip&srsName=EPSG:4326&TypeName=mapadmin_0_2013&cql_filter=country_id%20IN%20(%27MDG%27)'
  downloaded 79 KB
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/tmp/RtmpNZaqqu/shp/mapadmin_0_2013.shp", layer: "mapadmin_0_2013"
  with 1 features
  It has 9 fields
  ── 1. Error: error messages are appropriate to given error (@test_getPR.R#78)  ─
  cannot open the connection to 'https://map.ox.ac.uk/geoserver/Explorer/ows?service=wfs&version=2.0.0&request=GetFeature&outputFormat=csv&TypeName=PR_Data&PROPERTYNAME=site_id,dhs_id,site_name,latitude,longitude,month_start,year_start,month_end,year_end,lower_age,upper_age,examined,pf_pos,pf_pr,pv_pos,pv_pr,method,rdt_type,pcr_type,rural_urban,country_id,country,continent_id,malaria_metrics_available,location_available,permissions_info,citation1,citation2,citation3&cql_filter=country%20IN%20(%27Kenya%27)'
  1: expect_message(getPR(country = c("kenya", "ngeria"), species = "both"), regexp = "Data downloaded for Kenya") at testthat/test_getPR.R:78
  2: quasi_capture(enquo(object), capture_messages, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: getPR(country = c("kenya", "ngeria"), species = "both")
  7: utils::read.csv(full_URL, encoding = "UTF-8")
  8: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  9: file(file, "rt")
  
  trying URL 'https://map.ox.ac.uk/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&outputFormat=shape-zip&srsName=EPSG:4326&TypeName=mapadmin_0_2013&cql_filter=country_id%20IN%20(%27BDI%27)'
  downloaded 27 KB
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/tmp/RtmpNZaqqu/shp/mapadmin_0_2013.shp", layer: "mapadmin_0_2013"
  with 1 features
  It has 9 fields
  trying URL 'https://map.ox.ac.uk/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&outputFormat=shape-zip&srsName=EPSG:4326&TypeName=mapadmin_0_2013&cql_filter=country_id%20IN%20(%27BDI%27)'
  downloaded 27 KB
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/tmp/RtmpNZaqqu/shp/mapadmin_0_2013.shp", layer: "mapadmin_0_2013"
  with 1 features
  It has 9 fields
  trying URL 'https://map.ox.ac.uk/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&outputFormat=shape-zip&srsName=EPSG:4326&TypeName=mapadmin_0_2013&cql_filter=country_id%20IN%20(%27BDI%27,%27RWA%27)'
  downloaded 49 KB
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/tmp/RtmpNZaqqu/shp/mapadmin_0_2013.shp", layer: "mapadmin_0_2013"
  with 2 features
  It has 9 fields
  trying URL 'https://map.ox.ac.uk/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&outputFormat=shape-zip&srsName=EPSG:4326&TypeName=mapadmin_1_2013&cql_filter=country_id%20IN%20(%27BDI%27)'
  downloaded 159 KB
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/tmp/RtmpNZaqqu/shp/mapadmin_1_2013.shp", layer: "mapadmin_1_2013"
  with 17 features
  It has 6 fields
  trying URL 'https://map.ox.ac.uk/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&outputFormat=shape-zip&srsName=EPSG:4326&TypeName=mapadmin_1_2013&cql_filter=country_id%20IN%20(%27BDI%27,%27RWA%27)'
  downloaded 584 KB
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/tmp/RtmpNZaqqu/shp/mapadmin_1_2013.shp", layer: "mapadmin_1_2013"
  with 22 features
  It has 6 fields
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 120 SKIPPED: 3 FAILED: 1
  1. Error: error messages are appropriate to given error (@test_getPR.R#78) 
  
  Error: testthat unit tests failed
  Execution halted