Running ‘testthat.R’ [102s/122s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(antaresViz)
  Loading required package: antaresRead
  Loading required package: antaresProcessing
  
  Attaching package: 'antaresProcessing'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  Loading required package: spMaps
  Loading required package: sp
  Loading required package: raster
  
  Attaching package: 'raster'
  
  The following object is masked from 'package:antaresProcessing':
  
      getValues
  
  Loading required package: rgeos
  rgeos version: 0.5-2, (SVN revision 621)
   GEOS runtime version: 3.6.3-CAPI-1.10.3 
   Linking to sp version: 1.3-1 
   Polygon checking: TRUE 
  
  > 
  > test_check("antaresViz")
  ── 1. Error: (unknown) (@test-h5Request.R#3)  ──────────────────────────────────
  HDF5. File accessibilty. Unable to open file.
  1: describe("h5", {
         if (.requireRhdf5_Antares(stopP = FALSE)) {
             suppressMessages(writeAntaresH5(pathtemp, overwrite = TRUE))
             optsH5 <- setSimulationPath(pathtemp)
             expect_true(class(.getDateRange(optsH5, "hourly")) == "Date")
             expect_true(class(.getGraphFunction("ts")) == "function")
             fid <- rhdf5::H5Fopen(optsH5$h5path)
             expect_true(all(.getTimeStep(fid) %in% c("hourly", "daily", "weekly", "monthly", 
                 "annual")))
             expect_true(length(.getElements(optsH5, "areas", fid, "hourly")$areas) == 
                 9)
             expect_true(length(.getElements(optsH5, "clusters", fid, "hourly")$clusters) == 
                 7)
             expect_true(identical(.getClustersNames(fid, "hourly"), .getElements(optsH5, 
                 "clusters", fid, "hourly")$clusters))
             expect_true(length(.getVariablesH5(fid, "hourly", "areas")$areas) == 29)
             expect_true(length(.getTableInH5(fid, "hourly")) == 4)
             .tryCloseH5()
         }
     }) at testthat/test-h5Request.R:3
  2: eval(substitute(code), describe_environment)
  3: eval(substitute(code), describe_environment)
  4: suppressMessages(writeAntaresH5(pathtemp, overwrite = TRUE)) at testthat/test-h5Request.R:5
  5: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  6: writeAntaresH5(pathtemp, overwrite = TRUE)
  7: .writeAntaresH5Fun(path = path, timeSteps = timeSteps, opts = opts, writeMcAll = writeMcAll, 
         compress = compress, misc = misc, thermalAvailabilities = thermalAvailabilities, 
         hydroStorage = hydroStorage, hydroStorageMaxPower = hydroStorageMaxPower, reserve = reserve, 
         linkCapacity = linkCapacity, mustRun = mustRun, thermalModulation = thermalModulation, 
         removeVirtualAreas = removeVirtualAreas, storageFlexibility = storageFlexibility, 
         production = production, reassignCosts = reassignCosts, newCols = newCols, supressMessages = supressMessages)
  8: rhdf5::h5createFile(path)
  9: H5Fcreate(file)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 264 | SKIPPED: 4 | WARNINGS: 1 | FAILED: 1 ]
  1. Error: (unknown) (@test-h5Request.R#3) 
  
  Error: testthat unit tests failed
  Execution halted