Running 'testthat.R' [66s/136s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(windfarmGA)
  > library(rgdal)
  Loading required package: sp
  rgdal: version: 1.5-23, (SVN revision 1121)
  Geospatial Data Abstraction Library extensions to R successfully loaded
  Loaded GDAL runtime: GDAL 3.2.1, released 2020/12/29
  Path to GDAL shared files: /usr/share/gdal
  GDAL binary built with GEOS: TRUE 
  Loaded PROJ runtime: Rel. 7.2.1, January 1st, 2021, [PJ_VERSION: 721]
  Path to PROJ shared files: /home/hornik/.local/share/proj:/usr/share/proj
  PROJ CDN enabled: FALSE
  Linking to sp version:1.4-5
  To mute warnings of possible GDAL/OSR exportToProj4() degradation,
  use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
  > library(rgeos)
  rgeos version: 0.5-5, (SVN revision 640)
   GEOS runtime version: 3.9.0-CAPI-1.16.2 
   Linking to sp version: 1.4-5 
   Polygon checking: TRUE 
  
  > 
  > test_check("windfarmGA")
  .. [1] "ABBREV"       "ADM0_A3"      "ADM0_DIF"     "ADMIN"        "ADMIN.1"     
   [6] "AVOIDname"    "AVOIDnumeric" "FIPS_10_"     "FeatureCla"   "GBD"         
  [11] "GDP_MD_EST"   "GEO3"         "GEO3major"    "GEOUNIT"      "GEOU_DIF"    
  [16] "GLOCAF"       "GU_A3"        "IMAGE24"      "ISO3"         "ISO3.1"      
  [21] "ISO_A2"       "ISO_A3"       "ISO_N3"       "LAT"          "LDC"         
  [26] "LEVEL"        "LLDC"         "LON"          "LabelRank"    "MAP_COLOR"   
  [31] "NAME"         "NAME_FORMA"   "NAME_SORT"    "POP_EST"      "POSTAL"      
  [36] "REGION"       "SID"          "SOVEREIGNT"   "SOV_A3"       "SRES"        
  [41] "SRESmajor"    "SUBUNIT"      "SU_A3"        "SU_DIF"       "ScaleRank"   
  [46] "Stern"        "TERR_"        "TYPE"         "continent"   
  Enter an ISO3 code:  [1] "ABBREV"       "ADM0_A3"      "ADM0_DIF"     "ADMIN"        "ADMIN.1"     
   [6] "AVOIDname"    "AVOIDnumeric" "FIPS_10_"     "FeatureCla"   "GBD"         
  [11] "GDP_MD_EST"   "GEO3"         "GEO3major"    "GEOUNIT"      "GEOU_DIF"    
  [16] "GLOCAF"       "GU_A3"        "IMAGE24"      "ISO3"         "ISO3.1"      
  [21] "ISO_A2"       "ISO_A3"       "ISO_N3"       "LAT"          "LDC"         
  [26] "LEVEL"        "LLDC"         "LON"          "LabelRank"    "MAP_COLOR"   
  [31] "NAME"         "NAME_FORMA"   "NAME_SORT"    "POP_EST"      "POSTAL"      
  [36] "REGION"       "SID"          "SOVEREIGNT"   "SOV_A3"       "SRES"        
  [41] "SRESmajor"    "SUBUNIT"      "SU_A3"        "SU_DIF"       "ScaleRank"   
  [46] "Stern"        "TERR_"        "TYPE"         "continent"   
  Enter an ISO3 code: Enter the turbine number that you want to optimize.Please enter the corresponding number:
  Enter the turbine number that you want to optimize.Please enter the corresponding number:
  Enter the turbine number that you want to optimize.Please enter the corresponding number:
  trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
  == Skipped tests ===============================================================
  * On CRAN (4)
  * Too many clusters (1)
  
  == Failed tests ================================================================
  -- Error (test_visibility.R:19:3): Test Viewshed Functions ---------------------
  Error: cannot open URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
  Backtrace:
      x
   1. +-base::suppressWarnings(getDEM(as(Polygon1, "Spatial"))) test_visibility.R:19:2
   2. | \-base::withCallingHandlers(...)
   3. \-windfarmGA::getDEM(as(Polygon1, "Spatial"))
   4.   \-raster::getData("alt", country = ISO3)
   5.     \-raster:::.raster(..., name = name, download = download, path = path)
   6.       \-raster:::.download(theurl, zipfilename)
   7.         \-utils::download.file(...)
  
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 580 ]
  Error: Test failures
  Execution halted