Running 'testthat.R' [265s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(windfarmGA)
  > 
  > 
  > test_check("windfarmGA")
  ........$Input_Data
                         [,1]                                                                                                                 
  Rotorradius            "30"                                                                                                                 
  Number of turbines     "12"                                                                                                                 
  Grid Shape Factor      "5"                                                                                                                  
  Iterations             "1"                                                                                                                  
  Mutation Rate          "0.008"                                                                                                              
  Percentage of Polygon  "1"                                                                                                                  
  Topographie            "TRUE"                                                                                                               
  Elitarism              "TRUE"                                                                                                               
  Selection Method       "FIX"                                                                                                                
  Trim Force Method Used "FALSE"                                                                                                              
  Crossover Method Used  "EQU"                                                                                                                
  Reference Height       "100"                                                                                                                
  Rotor Height           "100"                                                                                                                
  Resolution             "150"                                                                                                                
  Parallel Processing    "FALSE"                                                                                                              
  Number Clusters        "2"                                                                                                                  
  Active Weibull         "FALSE"                                                                                                              
  Grid Method            "Rectangular"                                                                                                        
  Projection             "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000\n    +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
  
  $Windspeed_Data
    ws wd
  1 12  0
  
  Topography and orography are taken into account.
  trying URL 'http://github.com/YsoSirius/windfarm_data/raw/master/clc.zip'
  .[1] "plot_result: Plot the 'best' Individuals of the GA:"
  N different optimal configurations: 98 
  Amount duplicates: 102
  Plot  1  Best Energy Solution:
  Press [enter] to continue
  [1] "plot_evolution: Plot the Evolution of the Efficiency and Energy Values:"
  [1] "plot_parkfitness: Plot the Influence of Population Size, Selection, Crossover, Mutation:"
  Press [enter] to continue
  [1] "plot_fitness_evolution: Plot the Changes in Fitness Values:"
  Press [enter] to continue
  [1] "plot_cloud: Plot all individual Values of the whole Evolution:"
  Press [enter] to continue
  [1] "plot_heatmap: Plot a Heatmap of all Grid Cells:"
  [inverse distance weighted interpolation]
  Cannot plot option 2,3,4,5. 
   Only option 1,6 are available.[1] "plot_result: Plot the 'best' Individuals of the GA:"
  N different optimal configurations: 3 
  Amount duplicates: 0
  Plot  1  Best Energy Solution:
  Press [enter] to continue
  [1] "plot_heatmap: Plot a Heatmap of all Grid Cells:"
  [inverse distance weighted interpolation]
  Cannot plot option 2,3,4,5. 
   Only option 1,6 are available.[1] "plot_result: Plot the 'best' Individuals of the GA:"
  N different optimal configurations: 3 
  Amount duplicates: 0
  Plot  1  Best Energy Solution:
  Press [enter] to continue
  [1] "plot_heatmap: Plot a Heatmap of all Grid Cells:"
  [inverse distance weighted interpolation]
  [1] "plot_result: Plot the 'best' Individuals of the GA:"
  N different optimal configurations: 9 
  Amount duplicates: 1
  Plot  2  Best Energy Solution:
  
  Plot  1  Best Energy Solution:
  Press [enter] to continue
  [1] "plot_evolution: Plot the Evolution of the Efficiency and Energy Values:"
  [1] "plot_parkfitness: Plot the Influence of Population Size, Selection, Crossover, Mutation:"
  Press [enter] to continue
  [1] "plot_fitness_evolution: Plot the Changes in Fitness Values:"
  Press [enter] to continue
  [1] "plot_cloud: Plot all individual Values of the whole Evolution:"
  Press [enter] to continue
  [1] "plot_heatmap: Plot a Heatmap of all Grid Cells:"
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  Maximum possible number for 'which':  10.$Input_Data
                         [,1]                                                                                                                 
  Rotorradius            "30"                                                                                                                 
  Number of turbines     "12"                                                                                                                 
  Grid Shape Factor      "5"                                                                                                                  
  Iterations             "1"                                                                                                                  
  Mutation Rate          "0.008"                                                                                                              
  Percentage of Polygon  "1"                                                                                                                  
  Topographie            "TRUE"                                                                                                               
  Elitarism              "TRUE"                                                                                                               
  Selection Method       "FIX"                                                                                                                
  Trim Force Method Used "FALSE"                                                                                                              
  Crossover Method Used  "EQU"                                                                                                                
  Reference Height       "100"                                                                                                                
  Rotor Height           "100"                                                                                                                
  Resolution             "150"                                                                                                                
  Parallel Processing    "FALSE"                                                                                                              
  Number Clusters        "2"                                                                                                                  
  Active Weibull         "FALSE"                                                                                                              
  Grid Method            "Rectangular"                                                                                                        
  Projection             "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000\n    +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
  
  $Windspeed_Data
    ws wd
  1 12  0
  
  Topography and orography are taken into account.
  trying URL 'http://github.com/YsoSirius/windfarm_data/raw/master/clc.zip'
  -- 1. Error: Test Terrain and Weibull Effects (@test_terrain.R#39)  ------------
  cannot open URL 'http://github.com/YsoSirius/windfarm_data/raw/master/clc.zip'
  1: genAlgo(Polygon1 = sp_polygon, n = 12, iteration = 1, vdirspe = data.in, Rotor = 30, 
         RotorHeight = 100, topograp = TRUE, verbose = TRUE, plotit = TRUE) at testthat/test_terrain.R:39
  2: genetic_algorithm(Polygon1, GridMethod, Rotor, n, fcrR, referenceHeight, RotorHeight, 
         SurfaceRoughness, Proportionality, iteration, mutr, vdirspe, topograp, elitism, 
         nelit, selstate, crossPart1, trimForce, Projection, sourceCCL, sourceCCLRoughness, 
         weibull, weibullsrc, Parallel, numCluster, verbose, plotit)
  3: download.file("http://github.com/YsoSirius/windfarm_data/raw/master/clc.zip", destfile = "clc.zip", 
         method = "auto")
  
   [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:
  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:
  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:
  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:
  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:
  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:
  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:
  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:
  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:
  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:
  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:
  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:
  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:
  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:
  Enter the turbine number that you want to optimize.Please enter the corresponding number:
  
  Hit <ENTER> if this is your Polygon
  No Projection is given. Take Lambert Azimuthal Equal Area Projection.
  
  Hit <ENTER> if this is your Polygon
  
  Select appropriate Method. Either 'EQU' for equal crossover parts or 'RAN' for random parts.
  Type 'R' for random and 'E' for equal parts.
  
  Select appropriate Method. Either 'EQU' for equal crossover parts or 'RAN' for random parts.
  Type 'R' for random and 'E' for equal parts.
  
  Select appropriate Selection Method. Either 'FIX' or 'VAR' are available.
  Type 'F' for a fixed percentage of 50% and 'V' for a variable percentage.
  
  Press <ENTER> if the windrose looks correct?
  
  Is the grid spacing appropriate?Type 'ENTER' if the the grid is corrent and 'n' if you like to change some inputs.################### GA WARNING MESSAGE ###################
  Hit <ENTER> if this is your Polygon
  No Projection is given. Take Lambert Azimuthal Equal Area Projection.
  
  Hit <ENTER> if this is your Polygon
  
  Select appropriate Method. Either 'EQU' for equal crossover parts or 'RAN' for random parts.
  Type 'R' for random and 'E' for equal parts.
  
  Select appropriate Method. Either 'EQU' for equal crossover parts or 'RAN' for random parts.
  Type 'R' for random and 'E' for equal parts.
  
  Select appropriate Selection Method. Either 'FIX' or 'VAR' are available.
  Type 'F' for a fixed percentage of 50% and 'V' for a variable percentage.
  
  Press <ENTER> if the windrose looks correct?
  
  Is the grid spacing appropriate?Type 'ENTER' if the the grid is corrent and 'n' if you like to change some inputs....trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
  Content type 'application/zip' length 216165 bytes (211 KB)
  ==================================================
  downloaded 211 KB
  
  
  Hit <ENTER> if this is your Polygon
  No Projection is given. Take Lambert Azimuthal Equal Area Projection.
  
  Hit <ENTER> if this is your Polygon
  
  Press <ENTER> if the windrose looks correct?
  
  Is the grid spacing appropriate?Type 'ENTER' if the the grid is corrent and 'n' if you like to change some inputs......OGR data source with driver: ESRI Shapefile 
  Source: "D:\temp\RtmpSYIGSZ\RLIBS_2f7037f983e\windfarmGA\extdata\shape.shp", layer: "shape"
  with 1 features
  It has 1 fields
  
  Hit <ENTER> if this is your Polygon
  No Projection is given. Take Lambert Azimuthal Equal Area Projection.
  
  Hit <ENTER> if this is your Polygon
  
  Press <ENTER> if the windrose looks correct?
  
  Is the grid spacing appropriate?Type 'ENTER' if the the grid is corrent and 'n' if you like to change some inputs....
  Hit <ENTER> if this is your Polygon
  Polygon is not projected. Lambert Azimuthal Equal Area Projection is used.
  
  Hit <ENTER> if this is your Polygon
  
  Press <ENTER> if the windrose looks correct?
  
  Is the grid spacing appropriate?Type 'ENTER' if the the grid is corrent and 'n' if you like to change some inputs......
  Hit <ENTER> if this is your Polygon
  Polygon is not projected. Lambert Azimuthal Equal Area Projection is used.
  
  Hit <ENTER> if this is your Polygon
  
  Press <ENTER> if the windrose looks correct?
  
  Is the grid spacing appropriate?Type 'ENTER' if the the grid is corrent and 'n' if you like to change some inputs......
  Hit <ENTER> if this is your Polygon
  Polygon is not projected. Lambert Azimuthal Equal Area Projection is used.
  
  Hit <ENTER> if this is your Polygon
  
  Hit <ENTER> if this is your Polygon
  Polygon is not projected. Lambert Azimuthal Equal Area Projection is used.
  
  Hit <ENTER> if this is your Polygon
  
  Press <ENTER> if the windrose looks correct?
  ################### GA WARNING MESSAGE ###################
  Hit <ENTER> if this is your Polygon
  Polygon is not projected. Lambert Azimuthal Equal Area Projection is used.
  
  Hit <ENTER> if this is your Polygon
  
  Press <ENTER> if the windrose looks correct?
  ################### GA WARNING MESSAGE ###################
  Hit <ENTER> if this is your Polygon
  Polygon is not projected. Lambert Azimuthal Equal Area Projection is used.
  
  Hit <ENTER> if this is your Polygon
  
  Press <ENTER> if the windrose looks correct?
  
  Is the grid spacing appropriate?Type 'ENTER' if the the grid is corrent and 'n' if you like to change some inputs.weibullsrc class: 
  1 -  data.frame
  Hit <ENTER> if this is your Polygon
  Polygon is not projected. Lambert Azimuthal Equal Area Projection is used.
  
  Hit <ENTER> if this is your Polygon
  
  Press <ENTER> if the windrose looks correct?
  
  Is the grid spacing appropriate?Type 'ENTER' if the the grid is corrent and 'n' if you like to change some inputs.list item classes: 
  1 -  numeric 
  2 -  numeric== testthat results  ===========================================================
  [ OK: 766 | SKIPPED: 2 | WARNINGS: 155 | FAILED: 1 ]
  1. Error: Test Terrain and Weibull Effects (@test_terrain.R#39) 
  
  Error: testthat unit tests failed
  Execution halted