Running 'testthat.R'
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")
  tar (child): gzip: Cannot exec: No such file or directory
  tar (child): Error is not recoverable: exiting now
  /usr/bin/tar: Child returned status 2
  /usr/bin/tar: Error is not recoverable: exiting now
  tar (child): gzip: Cannot exec: No such file or directory
  tar (child): Error is not recoverable: exiting now
  /usr/bin/tar: Child returned status 2
  /usr/bin/tar: Error is not recoverable: exiting now
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-RemoveInputColumn.R:5:1): (code run outside of `test_that()`) ───
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-RemoveInputColumn.R:5:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-RemoveInputColumn.R:8:2
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-antaresDataTableMethods.R:7:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-antaresDataTableMethods.R:7:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-antaresDataTableMethods.R:10:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-asAntaresData.R:7:5): as.antaresDataTable: converts data.frames ──
  Error: Default antares options are not set. You need to run 'setSimulationPath()' to set them.
  Backtrace:
      █
   1. ├─antaresRead::as.antaresDataTable(dt, TRUE, "hourly", "areas") test-asAntaresData.R:7:4
   2. └─antaresRead:::as.antaresDataTable.data.frame(...)
   3.   ├─antaresRead:::.addClassAndAttributes(...)
   4.   │ └─data.table::setattr(x, "opts", opts)
   5.   └─antaresRead::simOptions()
  ── Error (test-asAntaresData.R:13:5): as.antaresDataTable: converts data.tables ──
  Error: Default antares options are not set. You need to run 'setSimulationPath()' to set them.
  Backtrace:
      █
   1. ├─antaresRead::as.antaresDataTable(dt, TRUE, "hourly", "areas") test-asAntaresData.R:13:4
   2. └─antaresRead:::as.antaresDataTable.data.frame(...)
   3.   ├─antaresRead:::.addClassAndAttributes(...)
   4.   │ └─data.table::setattr(x, "opts", opts)
   5.   └─antaresRead::simOptions()
  ── Error (test-asAntaresData.R:19:5): as.antaresDataTable: does not change antaresDatatTables ──
  Error: Default antares options are not set. You need to run 'setSimulationPath()' to set them.
  Backtrace:
      █
   1. ├─antaresRead::as.antaresDataTable(dt, TRUE, "hourly", "areas") test-asAntaresData.R:19:4
   2. └─antaresRead:::as.antaresDataTable.data.frame(...)
   3.   ├─antaresRead:::.addClassAndAttributes(...)
   4.   │ └─data.table::setattr(x, "opts", opts)
   5.   └─antaresRead::simOptions()
  ── Error (test-asAntaresData.R:33:5): as.antaresDataList: converts data.frames ──
  Error: Default antares options are not set. You need to run 'setSimulationPath()' to set them.
  Backtrace:
      █
   1. ├─antaresRead::as.antaresDataList(dt, TRUE, "hourly", "areas") test-asAntaresData.R:33:4
   2. └─antaresRead:::as.antaresDataList.data.frame(...)
   3.   ├─antaresRead::as.antaresDataTable(...)
   4.   ├─antaresRead:::as.antaresDataTable.data.frame(...)
   5.   │ └─antaresRead:::.addClassAndAttributes(...)
   6.   │   └─data.table::setattr(x, "opts", opts)
   7.   └─antaresRead::simOptions()
  ── Error (test-asAntaresData.R:40:5): as.antaresDataList: converts data.tables ──
  Error: Default antares options are not set. You need to run 'setSimulationPath()' to set them.
  Backtrace:
      █
   1. ├─antaresRead::as.antaresDataList(dt, TRUE, "hourly", "areas") test-asAntaresData.R:40:4
   2. └─antaresRead:::as.antaresDataList.data.frame(...)
   3.   ├─antaresRead::as.antaresDataTable(...)
   4.   ├─antaresRead:::as.antaresDataTable.data.frame(...)
   5.   │ └─antaresRead:::.addClassAndAttributes(...)
   6.   │   └─data.table::setattr(x, "opts", opts)
   7.   └─antaresRead::simOptions()
  ── Error (test-asAntaresData.R:47:5): as.antaresDataList: converts antaresDataTables ──
  Error: Default antares options are not set. You need to run 'setSimulationPath()' to set them.
  Backtrace:
      █
   1. ├─antaresRead::as.antaresDataTable(dt, TRUE, "hourly", "areas") test-asAntaresData.R:47:4
   2. └─antaresRead:::as.antaresDataTable.data.frame(...)
   3.   ├─antaresRead:::.addClassAndAttributes(...)
   4.   │ └─data.table::setattr(x, "opts", opts)
   5.   └─antaresRead::simOptions()
  ── Error (test-asAntaresData.R:55:5): as.antaresDataList: converts lists of tables ──
  Error: Default antares options are not set. You need to run 'setSimulationPath()' to set them.
  Backtrace:
      █
   1. ├─antaresRead::as.antaresDataList(l, TRUE, "hourly") test-asAntaresData.R:55:4
   2. └─antaresRead:::as.antaresDataList.list(l, TRUE, "hourly")
   3.   ├─antaresRead:::.addClassAndAttributes(...)
   4.   │ └─antaresRead:::.addClassAndAttributes(...)
   5.   │   └─data.table::setattr(x, "opts", opts)
   6.   └─antaresRead::simOptions()
  ── Error (test-asAntaresData.R:62:5): as.antaresDataList: does not change antaresDataLists ──
  Error: Default antares options are not set. You need to run 'setSimulationPath()' to set them.
  Backtrace:
      █
   1. ├─antaresRead::as.antaresDataList(dt, TRUE, "hourly", "areas") test-asAntaresData.R:62:4
   2. └─antaresRead:::as.antaresDataList.data.frame(...)
   3.   ├─antaresRead::as.antaresDataTable(...)
   4.   ├─antaresRead:::as.antaresDataTable.data.frame(...)
   5.   │ └─antaresRead:::.addClassAndAttributes(...)
   6.   │   └─data.table::setattr(x, "opts", opts)
   7.   └─antaresRead::simOptions()
  ── Error (test-bindingConstraints.R:4:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-bindingConstraints.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath, 0) test-bindingConstraints.R:6:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-changeTimeStep.R:4:1): (code run outside of `test_that()`) ──────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-changeTimeStep.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-changeTimeStep.R:7:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-extractDataList.R:5:1): (code run outside of `test_that()`) ─────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-extractDataList.R:5:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-extractDataList.R:8:2
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-getIds.R:5:1): (code run outside of `test_that()`) ──────────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-getIds.R:5:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-getIds.R:7:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-groupByDistrict.R:4:1): (code run outside of `test_that()`) ─────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-groupByDistrict.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-groupByDistrict.R:6:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-hvdcModification.R:6:1): (code run outside of `test_that()`) ────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-hvdcModification.R:6:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-hvdcModification.R:9:2
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-mcaggreg.R:4:1): (code run outside of `test_that()`) ────────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─antaresRead::setSimulationPath(tail(studyPathS, 1)) test-mcaggreg.R:4:0
   2.   └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-ponderate.R:3:1): (code run outside of `test_that()`) ───────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─antaresRead::setSimulationPath(studyPathSV8) test-ponderate.R:3:0
   2.   └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-ponderateMcAggregation.R:4:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-ponderateMcAggregation.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-ponderateMcAggregation.R:7:2
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-print.R:3:1): (code run outside of `test_that()`) ───────────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-print.R:3:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-print.R:5:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-readAntares.R:5:1): (code run outside of `test_that()`) ─────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-readAntares.R:5:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-readAntares.R:8:2
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-readAntares_districts.R:4:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-readAntares_districts.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-readAntares_districts.R:6:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-readAntares_inputs.R:5:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-readAntares_inputs.R:5:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-readAntares_inputs.R:7:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-readAntares_mustRun.R:4:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-readAntares_mustRun.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-readAntares_mustRun.R:6:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-readAntares_time_columns.R:4:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-readAntares_time_columns.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-readAntares_time_columns.R:6:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-readInputTS.R:4:1): (code run outside of `test_that()`) ─────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-readInputTS.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-readInputTS.R:6:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-readLayout.R:3:1): (code run outside of `test_that()`) ──────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-readLayout.R:3:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath, 1) test-readLayout.R:5:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-read_optim_criteria.R:4:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-read_optim_criteria.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath, 1) test-read_optim_criteria.R:6:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-removeVirtualAreas.R:5:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-removeVirtualAreas.R:5:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-removeVirtualAreas.R:7:2
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-setHvdcAreas.R:6:1): (code run outside of `test_that()`) ────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-setHvdcAreas.R:6:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-setHvdcAreas.R:9:2
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-setup.R:40:3): setSimulationPath reads correct values ───────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─antaresRead::setSimulationPath(studyPath) test-setup.R:40:2
   2.   └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-setup.R:45:3): R option 'antares' is set ────────────────────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─antaresRead::setSimulationPath(studyPath) test-setup.R:45:2
   2.   └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-setup.R:5:1): (code run outside of `test_that()`) ───────────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-setup.R:5:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-setup.R:48:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-subset_antaresDataList.R:4:1): (code run outside of `test_that()`) ──
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-subset_antaresDataList.R:4:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-subset_antaresDataList.R:6:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  ── Error (test-viewAntares.R:3:1): (code run outside of `test_that()`) ─────────
  Error: Directory is not an Antares study.
  Backtrace:
      █
   1. └─base::sapply(...) test-viewAntares.R:3:0
   2.   └─base::lapply(X = X, FUN = FUN, ...)
   3.     └─antaresRead:::FUN(X[[i]], ...)
   4.       └─antaresRead::setSimulationPath(studyPath) test-viewAntares.R:5:0
   5.         └─antaresRead:::.getPaths(path, simulation)
  
  [ FAIL 35 | WARN 27 | SKIP 0 | PASS 411 ]
  Error: Test failures
  In addition: Warning messages:
  1: In untar(file.path(sourcedir, studies[s]), exdir = file.path(path0,  :
    'C:/msys64/usr/bin/tar --force-local -xf "C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/antaresRead/antaresRead.Rcheck/antaresRead/testdata/antares-test-study.tar.gz" -C "C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/antaresRead/tmp/RtmpeAaCEj/antares-test-study"' returned error code 2
  2: In untar(file.path(sourcedir_V8, studies[s]), exdir = file.path(path0,  :
    'C:/msys64/usr/bin/tar --force-local -xf "C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/antaresRead/antaresRead.Rcheck/antaresRead/test_v8/test_case_study_v8.tar.gz" -C "C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/antaresRead/tmp/RtmpeAaCEj/test_case_study_v8"' returned error code 2
  Execution halted