Running 'testthat.R' [96s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > #Copyright © 2016 RTE Réseau de transport d’électricité
  > 
  > require(testthat)
  Loading required package: testthat
  > require(antaresRead)
  Loading required package: antaresRead
  > require(plyr)
  Loading required package: plyr
  > 
  > 
  > #Maybe include this in some test-file.R 
  > #is.solaris<-function(){
  > #  grepl('SunOS',Sys.info()['sysname'])
  > #}
  > 
  > #if(!is.solaris()){
  > 
  > test_check("antaresRead")
  Importing areas
  Importing binding constraints
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 851 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • (1): 'test-aggregateResult.R:5:1'
  • Functions use warnings -- tests skipped for now (1): 'test-digest.R:5:1'
  • readAntares empty when mcYears is NULL (1): 'test-ponderate.R:3:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-readClusterDesc.R:5:1'): (code run outside of `test_that()`) ───
  Error in `if (grepl(".h5$", path)) {
      if (file.exists(path)) {
          if (.requireRhdf5_Antares(stopP = FALSE)) {
              return(setSimulationPathH5(path))
          }
          else {
              stop(rhdf5_message)
          }
      }
      else {
          stop("Invalid path argument. File .h5 not found")
      }
  }`: the condition has length > 1
  Backtrace:
      ▆
   1. └─antaresRead::setSimulationPath(path_study_test, simulation = "input") at test-readClusterDesc.R:5:0
  ── Error ('test-readInputTS.R:132:1'): (code run outside of `test_that()`) ─────
  Error in `if (grepl(".h5$", path)) {
      if (file.exists(path)) {
          if (.requireRhdf5_Antares(stopP = FALSE)) {
              return(setSimulationPathH5(path))
          }
          else {
              stop(rhdf5_message)
          }
      }
      else {
          stop("Invalid path argument. File .h5 not found")
      }
  }`: the condition has length > 1
  Backtrace:
      ▆
   1. └─antaresRead::setSimulationPath(path_study_test, simulation = "input") at test-readInputTS.R:132:0
  
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 851 ]
  Error: Test failures
  Execution halted