Running ‘testthat.R’ [114s/115s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(vein)
  > 
  > test_check("vein")
  Running tests in parallel requires the 3rd edition
  Weighted mean =  6 
  [[1]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928c9b0>
  
  [[2]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928cb70>
  
  [[3]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928cd30>
  
  [[4]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928cef0>
  
  [[5]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928d0b0>
  
  [[6]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928d270>
  
  [[7]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928d430>
  
  [[8]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928d5f0>
  
  [[9]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928d7b0>
  
  [[10]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928d970>
  
  [[11]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928db30>
  
  [[12]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928dcf0>
  
  [[13]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928a080>
  
  [[14]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928a240>
  
  [[15]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928a400>
  
  [[16]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928a5c0>
  
  [[17]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928a780>
  
  [[18]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928a940>
  
  [[19]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928ab00>
  
  [[20]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928acc0>
  
  [[21]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928ae80>
  
  [[22]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928b040>
  
  [[23]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928b200>
  
  [[24]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928b3c0>
  
  [[25]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928b580>
  
  [[26]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928b740>
  
  [[27]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928b900>
  
  [[28]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928bac0>
  
  [[29]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928bc80>
  
  [[30]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x928be40>
  
  [[31]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x92881d0>
  
  [[32]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x9288390>
  
  [[33]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x9288550>
  
  [[34]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x9288710>
  
  [[35]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x92888d0>
  
  [[36]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x9288a90>
  
  [[37]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x9288c50>
  
  [[38]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x9288e10>
  
  [[39]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x9288fd0>
  
  [[40]]
  function (V) 
  x[i]
  <bytecode: 0x5723cd8>
  <environment: 0x9289190>
  
  attr(,"class")
  [1] "EmissionFactorsList" "list"               
  This EmissionFactorsList has 40 functionsThis EmissionFactorsList has 40 functions    Min  Qu.1 Median  Mean  Qu.3    Max    sd
  1 0.002 0.134  0.876 4.024 3.694 80.182 7.999
  Weighted mean =  4.49 
  [1] "Evaporative"
  Number of lon points: 16
  Number of lat points: 19
  
  Sum of street emissions 1768.17
  Sum of gridded emissions 1768.17
  Weighted mean =  1.5 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  Please, choose one of the following pollutants:
   CH4 CO2 D_0_15 D_10_25 D_20_35 ETOH FC FS KML N2O NH3 PM R_0_15 R_10_25 R_20_35 S_0_15 S_10_25 S_20_35 gCO2/KWH gD/KWH CO_0km CO NOx NOx_0km NO NO_0km NO2 NO2_0km HC_0km HC NMHC_0km NMHC RCHO RCHO_0km PM25RES PM10RES 
  Please, choose on of the following categories:
   PC_G PC_E PC_FG PC_FE LCV_G LCV_E LCV_FG LCV_FE LCV_D TRUCKS_SL_D TRUCKS_L_D TRUCKS_M_D TRUCKS_SH_D TRUCKS_H_D BUS_URBAN_D BUS_MICRO_D BUS_COACH_D BUS_ARTIC_D MC_150_G MC_150_500_G MC_500_G MC_150_FG MC_150_500_FG MC_500_FG MC_150_FE MC_150_500_FE MC_500_FE CICLOMOTOR G_BEFORE_GNV G_AFTER_GNV GNV_AFTER_GNV LDV HDV MC PC_ELEC LCV_ELEC TRUCKS_ELEC BUS_ELEC MC_150_ELEC MC_150_500_ELEC MC_500_ELEC note ref 
  'v' must be one of: Trucks PV 
  't' must be one of: Mini Light Medium Heavy Low Speed Small Large Taxi Bus Motorcycles Moped Mediumbus Largebus 3-Wheel 
  'f' must be one of: G D CNG ALL G HY D HY D 
  'p' must be one of: CO HC NOx PM2.5 PM10 
  Please, select any of: 
  [1] "ed"      "eshotfi" "eswarmc" "eshotc"  "erhotfi" "erwarmc" "erhotc" 
  
  adjusting amileage
  adjusting ef
  
  Names of the ef data.frame: 
   [1] "Age"          "Year"         "Pollutant"    "Proconve_LDV" "t_Euro_LDV"  
   [6] "Euro_LDV"     "Proconve_HDV" "Euro_HDV"     "PC_G"         "LT"          
  
  Range Year: 1980 2015 
  
  Names of the Pollutants:  CO HC NMHC CH4 NOx CO2 PM N2O 
  
  Names of the ef data.frame: 
   [1] "Age"          "Year"         "Pollutant"    "Proconve_LDV" "t_Euro_LDV"  
   [6] "Euro_LDV"     "Proconve_HDV" "Euro_HDV"     "PC_G"         "LT"          
  
  Range Year: 1980 2015 
  
  Names of the Pollutants:  CO HC NMHC CH4 NOx CO2 PM N2O 
  
  Please, choose one of the following pollutants:
   CO HC NMHC CH4 NOx CO2 PM N2O 
  
  Names of the ef data.frame: 
   [1] "Age"          "Year"         "Pollutant"    "Proconve_LDV" "t_Euro_LDV"  
   [6] "Euro_LDV"     "Proconve_HDV" "Euro_HDV"     "PC_G"         "LT"          
  
  Range Year: 1980 2015 
  
  Names of the ef data.frame: 
   [1] "Age"          "Year"         "Pollutant"    "Proconve_LDV" "t_Euro_LDV"  
   [6] "Euro_LDV"     "Proconve_HDV" "Euro_HDV"     "PC_G"         "LT"          
  
  Range Year: 1980 2015 
  
  Names of the Pollutants:  CO HC NMHC CH4 NOx CO2 PM N2O 
  
  Names of the ef data.frame: 
   [1] "Age"          "Year"         "Pollutant"    "Proconve_LDV" "t_Euro_LDV"  
   [6] "Euro_LDV"     "Proconve_HDV" "Euro_HDV"     "PC_G"         "LT"          
  
  Range Year: 1980 2015 
  
  Names of the Pollutants:  CO HC NMHC CH4 NOx CO2 PM N2O 
  
  Names of the ef data.frame: 
   [1] "Age"          "Year"         "Pollutant"    "Proconve_LDV" "t_Euro_LDV"  
   [6] "Euro_LDV"     "Proconve_HDV" "Euro_HDV"     "PC_G"         "LT"          
  
  Range Year: 1980 2015 
  
  Names of the Pollutants:  CO HC NMHC CH4 NOx CO2 PM N2O 
  Sum of emissions: 2412883 
  Sum of emissions: 2412883 
  Sum of emissions: 2412883 
  Sum of emissions: 2412883 
  Sum of emissions: 1844428 
  Sum of emissions: 1252443 
  Sum of emissions: 1252443 
  Sum of emissions: 1844428 
  Sum of emissions: 1844428 
  Sum of emissions: 1843744 
  Sum of emissions: 1843744 
  Sum of emissions: 1843744 
  Sum of emissions: 1843744 
  Sum of emissions: 1255381 
  Sum of emissions: 1255381 
  Columns: geometry emission 
  Selecting: motorway motorway_link trunk trunk_link primary primary_link secondary secondary_link tertiary tertiary_link 
  Columns: emission highway geometry 
  Sum of emissions: 12752 
  Sum of emissions: 1155 
  Sum of emissions: 13255 
  Sum of emissions: 13255 
  Sum of emissions: 13255 
  Sum of emissions: 1155 
  Sum of emissions: 1155 
  Sum of emissions: 1650 
  Sum of emissions: 1650 
  Number of lon points: 16
  Number of lat points: 19
  
  Sum of street emissions 12752
  Sum of gridded emissions 12752
  Sum of street emissions 12752
  Sum of gridded emissions 12752
  Sum of point emissions 12752
  Sum of gridded emissions 12752
  Sum of point emissions 1
  Sum of gridded emissions 1
  Sum of gridded emissions 1
  Sum of street emissions 12752
  Sum of gridded emissions 12752
  Sum of point emissions 12752
  Sum of gridded emissions 12752
  Sum of point emissions 1
  Sum of gridded emissions 1
  Sum of gridded emissions 1
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 6090769 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 778797.7 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 776986.6 
  Sum of emissions: 14127.03 
  Sum of emissions: 14127.03 
  Sum of emissions: 776986.6 
  Transforming into data.frame
  Your local_tz is:  Europe/London 
  Difference with UTC:  0 
  Sourcing  NA ...
  Sourcing  NA ...
  Number of lon points: 15
  Number of lat points: 19
  
  Sum of street emissions 3762.47
  Sum of gridded emissions 3762.47
  Scripts:
  [1] "est/BUS_01_input.R" "est/HGV_01_input.R" "est/LCV_01_input.R"
  [4] "est/MC_01_input.R"  "est/PC_01_input.R"  "main.R"            
  [7] "post.R"             "traffic.R"         
  Number of lon points: 23
  Number of lat points: 19
  
  Sum of street emissions 2095073
  Sum of gridded emissions 2095073
  Number of lon points: 23
  Number of lat points: 19
  
  Number of lon points: 23
  Number of lat points: 19
  
  Number of lon points: 23
  Number of lat points: 19
  
  Number of lon points: 23
  Number of lat points: 19
  
  Number of lon points: 23
  Number of lat points: 19
  
  
  
  Number of lon points: 1
  Number of lat points: 1
  
  Speeds by columns and street in study area = 
     Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
        1       1       1       1       1       1 
  Number of lon points: 23
  Number of lat points: 21
  
  Total Emissions 1946.955  kg 
  Intersecting
  Total Emissions 1946.955  kg 
  Total Emissions 2095.073  kg 
  Intersecting
  Total Emissions 2095.073  kg 
  Adding Column
  Creating grid
  Number of lon points: 12
  Number of lat points: 11
  
  Total Emissions 2095.073  kg 
  Intersecting
  Total Emissions 2095.073  kg 
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 714 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-ef_china.R:385:3'): ef_china stops ───────────────────────────
  `ef_china(...)` threw an error with unexpected message.
  Expected match: "U.?"
  Actual message: "argument is of length zero"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ef_china.R:385:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─vein::ef_china(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 714 ]
  Error: Test failures
  Execution halted